Move and rename some stuff whatever
This commit is contained in:
parent
a0cc623c4b
commit
7c5ff0253e
38 changed files with 53 additions and 127 deletions
|
@ -7,8 +7,6 @@
|
|||
./gaming
|
||||
./git
|
||||
./home-manager
|
||||
./nh
|
||||
./security
|
||||
./shells
|
||||
];
|
||||
}
|
||||
|
|
|
@ -1,9 +1,5 @@
|
|||
{ pkgs, ... }:
|
||||
{
|
||||
programs.gnupg.agent = {
|
||||
enable = true;
|
||||
enableSSHSupport = true;
|
||||
};
|
||||
|
||||
programs.gnupg.agent.enable = true;
|
||||
environment.systemPackages = with pkgs; [ git-crypt ];
|
||||
}
|
||||
|
|
|
@ -1,8 +0,0 @@
|
|||
{ ... }:
|
||||
{
|
||||
programs.nh = {
|
||||
enable = true;
|
||||
clean.enable = true;
|
||||
flake = "/etc/nixos";
|
||||
};
|
||||
}
|
|
@ -1,4 +0,0 @@
|
|||
{ ... }:
|
||||
{
|
||||
security.apparmor.enable = true;
|
||||
}
|
|
@ -1,9 +0,0 @@
|
|||
{ ... }:
|
||||
{
|
||||
imports = [
|
||||
./apparmor
|
||||
./polkit
|
||||
./privilege
|
||||
./rtprio
|
||||
];
|
||||
}
|
|
@ -1,7 +0,0 @@
|
|||
{ config, ... }:
|
||||
{
|
||||
security = {
|
||||
polkit.enable = config.system.desktop.enable;
|
||||
rtkit.enable = config.system.desktop.enable;
|
||||
};
|
||||
}
|
|
@ -1,31 +0,0 @@
|
|||
{ ... }:
|
||||
{
|
||||
security.sudo-rs = {
|
||||
enable = true;
|
||||
extraRules = [
|
||||
{ # Admin gets certain commands
|
||||
groups = [ "admin" ];
|
||||
commands = [
|
||||
"/run/current-system/sw/bin/nix"
|
||||
"/run/current-system/sw/bin/nh"
|
||||
"/run/current-system/sw/bin/nixos-rebuild"
|
||||
"/run/current-system/sw/bin/nixos-enter"
|
||||
"/run/current-system/sw/bin/nix-collect-garbage"
|
||||
"/run/current-system/sw/bin/nix-store"
|
||||
|
||||
"/run/current-system/sw/bin/systemctl"
|
||||
"/run/current-system/sw/bin/pkill"
|
||||
|
||||
"/run/current-system/sw/bin/dd"
|
||||
"/run/current-system/sw/bin/eject"
|
||||
"/run/current-system/sw/bin/vgchange"
|
||||
|
||||
"/run/current-system/sw/bin/cp"
|
||||
"/run/current-system/sw/bin/ls"
|
||||
"/run/current-system/sw/bin/cat"
|
||||
"/run/current-system/sw/bin/mount"
|
||||
];
|
||||
}
|
||||
];
|
||||
};
|
||||
}
|
|
@ -1,31 +0,0 @@
|
|||
{ ... }:
|
||||
{
|
||||
security.sudo-rs = {
|
||||
enable = true;
|
||||
extraRules = [
|
||||
{ # Admin gets certain commands
|
||||
groups = [ "admin" ];
|
||||
commands = [
|
||||
"/run/current-system/sw/bin/nix"
|
||||
"/run/current-system/sw/bin/nh"
|
||||
"/run/current-system/sw/bin/nixos-rebuild"
|
||||
"/run/current-system/sw/bin/nixos-enter"
|
||||
"/run/current-system/sw/bin/nix-collect-garbage"
|
||||
"/run/current-system/sw/bin/nix-store"
|
||||
|
||||
"/run/current-system/sw/bin/systemctl"
|
||||
"/run/current-system/sw/bin/pkill"
|
||||
|
||||
"/run/current-system/sw/bin/dd"
|
||||
"/run/current-system/sw/bin/eject"
|
||||
"/run/current-system/sw/bin/vgchange"
|
||||
|
||||
"/run/current-system/sw/bin/cp"
|
||||
"/run/current-system/sw/bin/ls"
|
||||
"/run/current-system/sw/bin/cat"
|
||||
"/run/current-system/sw/bin/mount"
|
||||
];
|
||||
}
|
||||
];
|
||||
};
|
||||
}
|
|
@ -1,11 +0,0 @@
|
|||
{ ... }:
|
||||
{
|
||||
security.pam.loginLimits = [
|
||||
{
|
||||
domain = "@users";
|
||||
item = "rtprio";
|
||||
type = "-";
|
||||
value = 1;
|
||||
}
|
||||
];
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue