diff options
| -rw-r--r-- | nixos.org | 24 | 
1 files changed, 12 insertions, 12 deletions
| @@ -118,28 +118,28 @@ stuff      #+begin_src nix :noweb-ref nixos-config        {          options = with lib; { -          homebinds = mkoption { -            type = with types; listof str; +          homeBinds = mkOption { +            type = with types; listOf str;              default = [ ]; -            description = "bind mounts in your home folder"; +            description = "Bind mounts in your home folder";            }; -          persistroot = mkoption { +          persistRoot = mkOption {              type = types.str;              default = "/nix/persist";            };          }; -        config = with lib; mkif (config.homebinds != [ ]) { -          filesystems = genattrs (map (loc: "/home/${config.mainuser}/${loc}") config.homebinds) +        config = mkIf (config.homeBinds != [ ]) { +          fileSystems = genAttrs (map (loc: "/home/${config.mainUser}/${loc}") config.homeBinds)              (loc: { -              device = "${config.persistroot}${loc}"; -              fstype = "none"; +              device = "${config.persistRoot}${loc}"; +              fsType = "none";                options = [ "bind" ];              });            systemd.services.fix-home-perms = { -            wantedby = [ "multi-user.target" ]; -            after = map (loc: "${builtins.replacestrings ["/"] ["-"] loc}.mount") config.homebinds; -            serviceconfig.type = "oneshot"; -            script = "chown -r ${config.mainuser} /home/${config.mainuser}"; +            wantedBy = [ "multi-user.target" ]; +            after = map (loc: "${builtins.replaceStrings ["/"] ["-"] loc}.mount") config.homeBinds; +            serviceConfig.Type = "oneshot"; +            script = "chown -R ${config.mainUser} /home/${config.mainUser}";            };          };        } | 
