summary refs log tree commit diff stats
diff options
context:
space:
mode:
Diffstat (limited to '')
-rw-r--r--hosts/thinklappi/default.nix5
-rw-r--r--sys/security/default.nix2
-rw-r--r--sys/security/pam/default.nix3
-rw-r--r--sys/security/rtkit/default.nix3
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;
+}