about summary refs log tree commit diff
path: root/modules
diff options
context:
space:
mode:
authorAlyssa Ross <hi@alyssa.is>2021-01-12 15:19:00 +0000
committerAlyssa Ross <hi@alyssa.is>2021-01-12 15:19:00 +0000
commitfa445f14361d91f8a7840a39ad6c29572a847053 (patch)
treeb3cffb33150dbaa9c35bf7b118c4c4bd6df3114f /modules
parente24dc3e236719c488fe57f33375947ba9134e175 (diff)
downloadnixlib-fa445f14361d91f8a7840a39ad6c29572a847053.tar
nixlib-fa445f14361d91f8a7840a39ad6c29572a847053.tar.gz
nixlib-fa445f14361d91f8a7840a39ad6c29572a847053.tar.bz2
nixlib-fa445f14361d91f8a7840a39ad6c29572a847053.tar.lz
nixlib-fa445f14361d91f8a7840a39ad6c29572a847053.tar.xz
nixlib-fa445f14361d91f8a7840a39ad6c29572a847053.tar.zst
nixlib-fa445f14361d91f8a7840a39ad6c29572a847053.zip
modules/home: switch from loaOf to attrsOf
loaOf is deprecated, and I never actually used this option as a list.
Diffstat (limited to 'modules')
-rw-r--r--modules/home/default.nix8
1 files changed, 4 insertions, 4 deletions
diff --git a/modules/home/default.nix b/modules/home/default.nix
index 780bac85b334..de7bec7cfbcd 100644
--- a/modules/home/default.nix
+++ b/modules/home/default.nix
@@ -3,7 +3,7 @@
 let
   inherit (lib) attrValues concatStringsSep mapAttrsToList mkOption
                 optionalString recursiveUpdate;
-  inherit (lib.types) bool loaOf nullOr str submodule;
+  inherit (lib.types) attrsOf bool nullOr str submodule;
 
   dirOpts = { ... }: {
     options = {
@@ -21,7 +21,7 @@ let
       };
       activationScripts = mkOption {
         default = {};
-        type = loaOf str;
+        type = attrsOf str;
       };
     };
   };
@@ -45,7 +45,7 @@ in
     options = {
       home = mkOption {
         default = {};
-        type = loaOf (submodule (args: recursiveUpdate (dirOpts args) {
+        type = attrsOf (submodule (args: recursiveUpdate (dirOpts args) {
           options = {
             imperativeNix = mkOption {
               default = false;
@@ -53,7 +53,7 @@ in
             };
             dirs = mkOption {
               default = {};
-              type = loaOf (submodule dirOpts);
+              type = attrsOf (submodule dirOpts);
             };
           };
         }));