diff options
author | sils <sils@sils.li> | 2023-12-06 17:12:52 +0100 |
---|---|---|
committer | sils <sils@sils.li> | 2023-12-06 17:12:52 +0100 |
commit | 852ec5caee361f693a583c66d1b75a9d21f0461f (patch) | |
tree | 8edfaa83cb2cb35b7375c41111b03f9f9bca8419 | |
parent | feat(treewide): move virtualisation out of hostconfig (diff) | |
download | nix-config-852ec5caee361f693a583c66d1b75a9d21f0461f.tar.gz nix-config-852ec5caee361f693a583c66d1b75a9d21f0461f.zip |
refactor(treewide): move security config out of hosts
Diffstat (limited to '')
-rw-r--r-- | hosts/thinklappi/default.nix | 5 | ||||
-rw-r--r-- | sys/security/default.nix | 2 | ||||
-rw-r--r-- | sys/security/pam/default.nix | 3 | ||||
-rw-r--r-- | sys/security/rtkit/default.nix | 3 |
4 files changed, 8 insertions, 5 deletions
diff --git a/hosts/thinklappi/default.nix b/hosts/thinklappi/default.nix index 06fd052..dc347ba 100644 --- a/hosts/thinklappi/default.nix +++ b/hosts/thinklappi/default.nix @@ -15,11 +15,6 @@ pulseaudio.enable = false; }; - security = { - rtkit.enable = true; - pam.services.swaylock = {}; - }; - environment.systemPackages = [pkgs.xorg.xkbcomp]; i18n.defaultLocale = "en_US.UTF-8"; diff --git a/sys/security/default.nix b/sys/security/default.nix index 83d89e5..4145d1d 100644 --- a/sys/security/default.nix +++ b/sys/security/default.nix @@ -1,5 +1,7 @@ {...}: { imports = [ + ./pam + ./rtkit ./sudo ]; } diff --git a/sys/security/pam/default.nix b/sys/security/pam/default.nix new file mode 100644 index 0000000..eef9213 --- /dev/null +++ b/sys/security/pam/default.nix @@ -0,0 +1,3 @@ +{...}: { + security.pam.services.swaylock = {}; +} diff --git a/sys/security/rtkit/default.nix b/sys/security/rtkit/default.nix new file mode 100644 index 0000000..3def781 --- /dev/null +++ b/sys/security/rtkit/default.nix @@ -0,0 +1,3 @@ +{...}: { + security.rtkit.enable = true; +} |