summary refs log tree commit diff
diff options
context:
space:
mode:
authorCrazazy2022-01-31 12:55:27 +0100
committerCrazazy2022-02-10 16:13:34 +0100
commit1d838398a74d85b06e29a0cc4e2afb8230d7017b (patch)
treebfbb7a48f059f8d0c3188c8f0aea2917a6353a06
parent7e32932c3dc41ad132b0d3a414f5099cd6630706 (diff)
fix: somehow all the uppercase letters in this part got lowercased
-rw-r--r--nixos.org24
1 files changed, 12 insertions, 12 deletions
diff --git a/nixos.org b/nixos.org
index bf42d14..6704eba 100644
--- a/nixos.org
+++ b/nixos.org
@@ -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}";
           };
         };
       }