Modular, context-aware and aspect-oriented dendritic Nix configurations. Discussions: https://oeiuwq.zulipchat.com/join/nqp26cd4kngon6mo3ncgnuap/ den.oeiuwq.com
configurations den dendritic nix aspect oriented

noflakes update using maid class and user class

+12 -14
+12 -14
templates/noflake/modules/den.nix
··· 9 9 boot.loader.grub.enable = false; 10 10 }; 11 11 12 - # tux user on igloo host. 13 - den.hosts.x86_64-linux.igloo.users.tux = { }; 12 + # tux user on igloo host, using nix-maid 13 + den.hosts.x86_64-linux.igloo.users.tux = { 14 + classes = [ "maid" ]; 15 + }; 14 16 15 17 # host aspect 16 18 den.aspects.igloo = { ··· 25 27 26 28 # user aspect 27 29 den.aspects.tux = { 28 - # user configures the host it lives in 29 - nixos = { 30 - # hipster-tux uses nix-maid instead of home-manager. 31 - imports = [ inputs.nix-maid.nixosModules.default ]; 30 + # user configures host nixos.users.users.tux.isNormalUser. 31 + # Read docs about the `user` class. 32 + user.isNormalUser = true; 32 33 33 - users.users.tux = { 34 - isNormalUser = true; 35 - maid.file.home.".gitconfig".text = '' 36 - [user] 37 - name=Tux 38 - ''; 39 - }; 40 - }; 34 + # maid class 35 + maid.file.home.".gitconfig".text = '' 36 + [user] 37 + name=Tux 38 + ''; 41 39 }; 42 40 }