some changes

This commit is contained in:
Dmitriy Kholkin 2020-08-29 17:47:21 +04:00
parent cd3c449620
commit 299dad13bc
7 changed files with 66 additions and 69 deletions

Binary file not shown.

Binary file not shown.

View File

@ -10,79 +10,71 @@ with deviceSpecific; {
};
home-manager.users.alukard.home.packages = with pkgs; [
# Utils
# cli
advance-touch
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
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
# wpgtk
# pywal
# python27Packages.pygtk # pywal GTK2 reload
# python2 # pywal GTK2 reload
# ncmpcpp
zip
gptfdisk
youtube-to-mpv
wg-conf
(vivaldi.override { proprietaryCodecs = true; })
# tui
bpytop
micro
ncdu
nnn
ranger
xfce4-14.thunar
xfce4-14.xfce4-taskmanager
git-crypt
# gui
discord
feh
gnome3.simple-scan
gparted
keepassxc
pinta
pulseeffects
qbittorrent
spotifywm
system-config-printer
tdesktop
(vivaldi.override { proprietaryCodecs = true; })
vscode
xarchiver
tdesktop
spotifywm
discord
pulseeffects
# quodlibet
zathura # pdf
pinta
xfce4-14.thunar
xfce4-14.xfce4-taskmanager
youtube-to-mpv
zathura
# audacity # fixit
# quodlibet
] ++ lib.optionals (!isVM) [
libreoffice
# rust-stable
# steam
# steam-run
# protontricks
libreoffice
] ++ lib.optionals isGaming [
# lutris
# protontricks
# retroarch
steam-run
(steam.override { withJava = true; })
] ++ lib.optionals isLaptop [
# blueman
# acpi
# blueman
] ++ lib.optionals (device == "AMD-Workstation") [
# xonar-fp
];

View File

@ -20,6 +20,7 @@ with types; {
cpu = devInfo.cpu.vendor;
video = devInfo.video;
enableVirtualisation = devInfo.enableVirtualisation;
isGaming = devInfo.gaming;
};
devices = {
@ -37,6 +38,7 @@ with types; {
ram = 16;
isShared = false;
enableVirtualisation = true;
gaming = true;
};
Dell-Laptop = {
cpu = {
@ -52,6 +54,7 @@ with types; {
ram = 16;
isShared = false;
enableVirtualisation = false;
gaming = true;
};
NixOS-VM = {
cpu = {
@ -67,6 +70,7 @@ with types; {
ram = 4;
isShared = false;
enableVirtualisation = false;
gaming = false;
};
};
};

View File

@ -1,7 +1,5 @@
{ config, lib, pkgs, ... }:
let
device = config.devices.${config.device};
in {
with config.deviceSpecific; {
services.acpid.enable = true;
@ -51,13 +49,15 @@ in {
services.upower.enable = true;
virtualisation.docker.enable = device.enableVirtualisation;
environment.systemPackages = lib.mkIf (device.enableVirtualisation) [ pkgs.docker-compose ];
virtualisation.docker.enable = enableVirtualisation;
environment.systemPackages = lib.mkIf (enableVirtualisation) [ pkgs.docker-compose ];
virtualisation.libvirtd = {
enable = device.enableVirtualisation;
enable = enableVirtualisation;
};
# virtualisation.anbox.enable = isGaming; # broken
# virtualisation.virtualbox.host = {
# enable = device.enableVirtualisation;
# # enableHardening = false;

View File

@ -1,4 +1,5 @@
{ config, pkgs, lib, ... }: {
{ config, pkgs, lib, ... }:
with config.deviceSpecific; {
security.apparmor.enable = true;
programs.firejail.enable = true;
@ -30,11 +31,11 @@
};
security.sudo = {
enable = true;
# extraConfig = ''
# alukard ALL = (root) NOPASSWD: /run/current-system/sw/bin/lock
# alukard ALL = (root) NOPASSWD: /run/current-system/sw/bin/lock this
# alukard ALL = (root) NOPASSWD: /run/current-system/sw/bin/nixos-rebuild switch
# '';
extraConfig = lib.mkIf isLaptop ''
alukard ALL = (root) NOPASSWD: /run/current-system/sw/bin/tlp-stat
alukard ALL = (root) NOPASSWD: /run/current-system/sw/bin/tlp ac
alukard ALL = (root) NOPASSWD: /run/current-system/sw/bin/tlp bat
'';
};
# nix.requireSignedBinaryCaches = false;
home-manager.useUserPackages = true;

View File

@ -7,7 +7,7 @@
inactiveOpacity = "0.95";
opacityRule = [
"100:class_i ?= 'vivaldi-stable'"
"100:class_i = 'mpv'"
"100:class_g = 'mpv'"
"90:class_g = 'URxvt' && focused"
"70:class_g = 'URxvt' && !focused"
];