mirror of
https://github.com/sadan4/dotfiles.git
synced 2025-06-26 22:18:20 -04:00
more refactoring
This commit is contained in:
parent
375a1b2e89
commit
5fca9d16c0
13 changed files with 163 additions and 78 deletions
14
common/systemModules/boot.nix
Normal file
14
common/systemModules/boot.nix
Normal file
|
@ -0,0 +1,14 @@
|
|||
{ pkgs, ... }: {
|
||||
boot = {
|
||||
loader = {
|
||||
grub = {
|
||||
enable = true;
|
||||
device = "nodev";
|
||||
efiSupport = true;
|
||||
useOSProber = true;
|
||||
efiInstallAsRemovable = true;
|
||||
};
|
||||
};
|
||||
kernelPackages = pkgs.linuxPackages_latest;
|
||||
};
|
||||
}
|
22
common/systemModules/crypt.nix
Normal file
22
common/systemModules/crypt.nix
Normal file
|
@ -0,0 +1,22 @@
|
|||
{ pkgs, ... }: {
|
||||
environment = {
|
||||
systemPackages = with pkgs; [
|
||||
gnupg
|
||||
openssh
|
||||
pinentry-curses
|
||||
pinentry
|
||||
];
|
||||
};
|
||||
programs = {
|
||||
ssh = {
|
||||
startAgent = true;
|
||||
askPassword = "${pkgs.ksshaskpass}/bin/ksshaskpass";
|
||||
};
|
||||
gnupg = {
|
||||
agent = {
|
||||
enable = true;
|
||||
pinentryPackage = pkgs.pinentry-gnome3;
|
||||
};
|
||||
};
|
||||
};
|
||||
}
|
15
common/systemModules/gaming.nix
Normal file
15
common/systemModules/gaming.nix
Normal file
|
@ -0,0 +1,15 @@
|
|||
{ pkgs, ... }: {
|
||||
hardware = {
|
||||
xpadneo = {
|
||||
enable = true;
|
||||
};
|
||||
};
|
||||
programs = {
|
||||
steam = {
|
||||
enable = true;
|
||||
extraCompatPackages = with pkgs; [
|
||||
proton-ge-bin
|
||||
];
|
||||
};
|
||||
};
|
||||
}
|
12
common/systemModules/nixHelper.nix
Normal file
12
common/systemModules/nixHelper.nix
Normal file
|
@ -0,0 +1,12 @@
|
|||
{ NAME }: { ... }: {
|
||||
programs = {
|
||||
nh = {
|
||||
enable = true;
|
||||
clean = {
|
||||
enable = true;
|
||||
extraArgs = "--keep-since 4d --keep 3";
|
||||
};
|
||||
flake = "/home/${NAME}/nixos"
|
||||
};
|
||||
};
|
||||
}
|
13
common/systemModules/printing.nix
Normal file
13
common/systemModules/printing.nix
Normal file
|
@ -0,0 +1,13 @@
|
|||
{ pkgs, ... }: {
|
||||
services = {
|
||||
avahi = {
|
||||
enable = true;
|
||||
};
|
||||
printing = {
|
||||
enable = true;
|
||||
drivers = with pkgs; [
|
||||
hplip
|
||||
];
|
||||
};
|
||||
};
|
||||
}
|
8
common/systemModules/razer.nix
Normal file
8
common/systemModules/razer.nix
Normal file
|
@ -0,0 +1,8 @@
|
|||
{ NAME }: { ... }: {
|
||||
hardware = {
|
||||
openrazer = {
|
||||
enable = true;
|
||||
users = [ NAME ];
|
||||
};
|
||||
};
|
||||
}
|
7
common/systemModules/tailscale.nix
Normal file
7
common/systemModules/tailscale.nix
Normal file
|
@ -0,0 +1,7 @@
|
|||
{ ... }: {
|
||||
services = {
|
||||
tailscale = {
|
||||
enable = true;
|
||||
};
|
||||
};
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue