about summary refs log tree commit diff
path: root/nixos/modules/config
diff options
context:
space:
mode:
authorDavid Reiss <dnr@dnr.im>2020-10-14 17:29:30 -0700
committerDavid Reiss <dnr@dnr.im>2020-10-14 22:55:55 -0700
commit49a749c7299eac1ee1fc401d376db245cb834a73 (patch)
tree40c03d264672c6bb156bed34bf975798739303a9 /nixos/modules/config
parent2a4607f44222a92b8a44e6e1dac715e7eca04239 (diff)
nixos/pam_mount: add pamMount attribute to users
This attribute is a generalized version of cryptHomeLuks for creating an
entry in /etc/security/pam_mount.conf.xml. It lets the configuration
control all the attributes of the <volume> entry, instead of just the
path. The default path remains the value of cryptHomeLuks, for
compatibility.
Diffstat (limited to 'nixos/modules/config')
-rw-r--r--nixos/modules/config/users-groups.nix14
1 files changed, 14 insertions, 0 deletions
diff --git a/nixos/modules/config/users-groups.nix b/nixos/modules/config/users-groups.nix
index 1bb1317a8e85a..5264d5b56fa50 100644
--- a/nixos/modules/config/users-groups.nix
+++ b/nixos/modules/config/users-groups.nix
@@ -139,6 +139,20 @@ let
         '';
       };
 
+      pamMount = mkOption {
+        type = with types; attrsOf str;
+        default = {};
+        description = ''
+          Attributes for user's entry in
+          <filename>pam_mount.conf.xml</filename>.
+          Useful attributes might include <code>path</code>,
+          <code>options</code>, <code>fstype</code>, and <code>server</code>.
+          See <link
+          xlink:href="http://pam-mount.sourceforge.net/pam_mount.conf.5.html" />
+          for more information.
+        '';
+      };
+
       shell = mkOption {
         type = types.either types.shellPackage types.path;
         default = pkgs.shadow;