literate-config

Unnamed repository; edit this file 'description' to name the repository.
Log | Files | Refs

commit 1d838398a74d85b06e29a0cc4e2afb8230d7017b
parent 7e32932c3dc41ad132b0d3a414f5099cd6630706
Author: Crazazy <crazazy@tilde.cafe>
Date:   Mon, 31 Jan 2022 12:55:27 +0100

fix: somehow all the uppercase letters in this part got lowercased

Diffstat:
Mnixos.org | 24++++++++++++------------
1 file changed, 12 insertions(+), 12 deletions(-)

diff --git 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}"; }; }; }