From 1d838398a74d85b06e29a0cc4e2afb8230d7017b Mon Sep 17 00:00:00 2001 From: Crazazy Date: Mon, 31 Jan 2022 12:55:27 +0100 Subject: fix: somehow all the uppercase letters in this part got lowercased --- nixos.org | 24 ++++++++++++------------ 1 file 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}"; }; }; } -- cgit 1.4.1-2-gfad0