some changes
This commit is contained in:
parent
cd3c449620
commit
299dad13bc
Binary file not shown.
Binary file not shown.
@ -10,79 +10,71 @@ with deviceSpecific; {
|
|||||||
};
|
};
|
||||||
|
|
||||||
home-manager.users.alukard.home.packages = with pkgs; [
|
home-manager.users.alukard.home.packages = with pkgs; [
|
||||||
# Utils
|
# cli
|
||||||
|
advance-touch
|
||||||
curl
|
curl
|
||||||
|
exa
|
||||||
|
fd
|
||||||
|
git-crypt
|
||||||
|
lm_sensors
|
||||||
|
lnav
|
||||||
|
neofetch
|
||||||
|
nix-prefetch-git
|
||||||
|
nomino
|
||||||
|
(p7zip.override { enableUnfree = true; })
|
||||||
|
pciutils
|
||||||
|
pinfo
|
||||||
|
ripgrep
|
||||||
|
tealdeer
|
||||||
|
unzip
|
||||||
|
usbutils
|
||||||
|
wg-conf
|
||||||
wget
|
wget
|
||||||
xclip
|
xclip
|
||||||
pciutils
|
|
||||||
usbutils
|
|
||||||
nix-prefetch-git
|
|
||||||
|
|
||||||
system-config-printer
|
|
||||||
gnome3.simple-scan
|
|
||||||
# vdpauinfo
|
|
||||||
# libva-utils
|
|
||||||
lm_sensors
|
|
||||||
gparted
|
|
||||||
neofetch
|
|
||||||
# bashmount
|
|
||||||
zip
|
|
||||||
unzip
|
|
||||||
(p7zip.override { enableUnfree = true; })
|
|
||||||
feh
|
|
||||||
|
|
||||||
# new tools
|
|
||||||
tealdeer
|
|
||||||
pinfo
|
|
||||||
ncdu
|
|
||||||
fd
|
|
||||||
ripgrep
|
|
||||||
lnav
|
|
||||||
advance-touch # python3 pip
|
|
||||||
exa
|
|
||||||
nomino # 'heavy' rust build
|
|
||||||
bpytop
|
|
||||||
nnn
|
|
||||||
micro
|
|
||||||
# cli
|
|
||||||
ranger
|
|
||||||
youtube-dl
|
youtube-dl
|
||||||
# wpgtk
|
zip
|
||||||
# pywal
|
gptfdisk
|
||||||
# python27Packages.pygtk # pywal GTK2 reload
|
|
||||||
# python2 # pywal GTK2 reload
|
|
||||||
# ncmpcpp
|
|
||||||
|
|
||||||
youtube-to-mpv
|
# tui
|
||||||
wg-conf
|
bpytop
|
||||||
(vivaldi.override { proprietaryCodecs = true; })
|
micro
|
||||||
|
ncdu
|
||||||
|
nnn
|
||||||
|
ranger
|
||||||
|
|
||||||
xfce4-14.thunar
|
# gui
|
||||||
xfce4-14.xfce4-taskmanager
|
discord
|
||||||
git-crypt
|
feh
|
||||||
|
gnome3.simple-scan
|
||||||
|
gparted
|
||||||
keepassxc
|
keepassxc
|
||||||
|
pinta
|
||||||
|
pulseeffects
|
||||||
qbittorrent
|
qbittorrent
|
||||||
|
spotifywm
|
||||||
|
system-config-printer
|
||||||
|
tdesktop
|
||||||
|
(vivaldi.override { proprietaryCodecs = true; })
|
||||||
vscode
|
vscode
|
||||||
xarchiver
|
xarchiver
|
||||||
tdesktop
|
xfce4-14.thunar
|
||||||
spotifywm
|
xfce4-14.xfce4-taskmanager
|
||||||
discord
|
youtube-to-mpv
|
||||||
pulseeffects
|
zathura
|
||||||
# quodlibet
|
|
||||||
zathura # pdf
|
|
||||||
pinta
|
|
||||||
# audacity # fixit
|
# audacity # fixit
|
||||||
|
# quodlibet
|
||||||
] ++ lib.optionals (!isVM) [
|
] ++ lib.optionals (!isVM) [
|
||||||
libreoffice
|
|
||||||
# rust-stable
|
# rust-stable
|
||||||
# steam
|
libreoffice
|
||||||
# steam-run
|
] ++ lib.optionals isGaming [
|
||||||
# protontricks
|
|
||||||
# lutris
|
# lutris
|
||||||
|
# protontricks
|
||||||
# retroarch
|
# retroarch
|
||||||
|
steam-run
|
||||||
|
(steam.override { withJava = true; })
|
||||||
] ++ lib.optionals isLaptop [
|
] ++ lib.optionals isLaptop [
|
||||||
# blueman
|
|
||||||
# acpi
|
# acpi
|
||||||
|
# blueman
|
||||||
] ++ lib.optionals (device == "AMD-Workstation") [
|
] ++ lib.optionals (device == "AMD-Workstation") [
|
||||||
# xonar-fp
|
# xonar-fp
|
||||||
];
|
];
|
||||||
|
@ -20,6 +20,7 @@ with types; {
|
|||||||
cpu = devInfo.cpu.vendor;
|
cpu = devInfo.cpu.vendor;
|
||||||
video = devInfo.video;
|
video = devInfo.video;
|
||||||
enableVirtualisation = devInfo.enableVirtualisation;
|
enableVirtualisation = devInfo.enableVirtualisation;
|
||||||
|
isGaming = devInfo.gaming;
|
||||||
};
|
};
|
||||||
|
|
||||||
devices = {
|
devices = {
|
||||||
@ -37,6 +38,7 @@ with types; {
|
|||||||
ram = 16;
|
ram = 16;
|
||||||
isShared = false;
|
isShared = false;
|
||||||
enableVirtualisation = true;
|
enableVirtualisation = true;
|
||||||
|
gaming = true;
|
||||||
};
|
};
|
||||||
Dell-Laptop = {
|
Dell-Laptop = {
|
||||||
cpu = {
|
cpu = {
|
||||||
@ -52,6 +54,7 @@ with types; {
|
|||||||
ram = 16;
|
ram = 16;
|
||||||
isShared = false;
|
isShared = false;
|
||||||
enableVirtualisation = false;
|
enableVirtualisation = false;
|
||||||
|
gaming = true;
|
||||||
};
|
};
|
||||||
NixOS-VM = {
|
NixOS-VM = {
|
||||||
cpu = {
|
cpu = {
|
||||||
@ -67,6 +70,7 @@ with types; {
|
|||||||
ram = 4;
|
ram = 4;
|
||||||
isShared = false;
|
isShared = false;
|
||||||
enableVirtualisation = false;
|
enableVirtualisation = false;
|
||||||
|
gaming = false;
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
|
@ -1,7 +1,5 @@
|
|||||||
{ config, lib, pkgs, ... }:
|
{ config, lib, pkgs, ... }:
|
||||||
let
|
with config.deviceSpecific; {
|
||||||
device = config.devices.${config.device};
|
|
||||||
in {
|
|
||||||
|
|
||||||
services.acpid.enable = true;
|
services.acpid.enable = true;
|
||||||
|
|
||||||
@ -51,13 +49,15 @@ in {
|
|||||||
|
|
||||||
services.upower.enable = true;
|
services.upower.enable = true;
|
||||||
|
|
||||||
virtualisation.docker.enable = device.enableVirtualisation;
|
virtualisation.docker.enable = enableVirtualisation;
|
||||||
environment.systemPackages = lib.mkIf (device.enableVirtualisation) [ pkgs.docker-compose ];
|
environment.systemPackages = lib.mkIf (enableVirtualisation) [ pkgs.docker-compose ];
|
||||||
|
|
||||||
virtualisation.libvirtd = {
|
virtualisation.libvirtd = {
|
||||||
enable = device.enableVirtualisation;
|
enable = enableVirtualisation;
|
||||||
};
|
};
|
||||||
|
|
||||||
|
# virtualisation.anbox.enable = isGaming; # broken
|
||||||
|
|
||||||
# virtualisation.virtualbox.host = {
|
# virtualisation.virtualbox.host = {
|
||||||
# enable = device.enableVirtualisation;
|
# enable = device.enableVirtualisation;
|
||||||
# # enableHardening = false;
|
# # enableHardening = false;
|
||||||
|
@ -1,4 +1,5 @@
|
|||||||
{ config, pkgs, lib, ... }: {
|
{ config, pkgs, lib, ... }:
|
||||||
|
with config.deviceSpecific; {
|
||||||
|
|
||||||
security.apparmor.enable = true;
|
security.apparmor.enable = true;
|
||||||
programs.firejail.enable = true;
|
programs.firejail.enable = true;
|
||||||
@ -30,11 +31,11 @@
|
|||||||
};
|
};
|
||||||
security.sudo = {
|
security.sudo = {
|
||||||
enable = true;
|
enable = true;
|
||||||
# extraConfig = ''
|
extraConfig = lib.mkIf isLaptop ''
|
||||||
# alukard ALL = (root) NOPASSWD: /run/current-system/sw/bin/lock
|
alukard ALL = (root) NOPASSWD: /run/current-system/sw/bin/tlp-stat
|
||||||
# alukard ALL = (root) NOPASSWD: /run/current-system/sw/bin/lock this
|
alukard ALL = (root) NOPASSWD: /run/current-system/sw/bin/tlp ac
|
||||||
# alukard ALL = (root) NOPASSWD: /run/current-system/sw/bin/nixos-rebuild switch
|
alukard ALL = (root) NOPASSWD: /run/current-system/sw/bin/tlp bat
|
||||||
# '';
|
'';
|
||||||
};
|
};
|
||||||
# nix.requireSignedBinaryCaches = false;
|
# nix.requireSignedBinaryCaches = false;
|
||||||
home-manager.useUserPackages = true;
|
home-manager.useUserPackages = true;
|
||||||
|
@ -7,7 +7,7 @@
|
|||||||
inactiveOpacity = "0.95";
|
inactiveOpacity = "0.95";
|
||||||
opacityRule = [
|
opacityRule = [
|
||||||
"100:class_i ?= 'vivaldi-stable'"
|
"100:class_i ?= 'vivaldi-stable'"
|
||||||
"100:class_i = 'mpv'"
|
"100:class_g = 'mpv'"
|
||||||
"90:class_g = 'URxvt' && focused"
|
"90:class_g = 'URxvt' && focused"
|
||||||
"70:class_g = 'URxvt' && !focused"
|
"70:class_g = 'URxvt' && !focused"
|
||||||
];
|
];
|
||||||
|
Loading…
x
Reference in New Issue
Block a user