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
8
fork

Configure Feed

Select the types of activity you want to include in your feed.

fix(template): update default template to use mutual-providers (#339)

authored by

Victor Borja and committed by
GitHub
f3c1fd0d 63541487

+15 -5
+7
templates/default/modules/defaults.nix
··· 1 + { lib, den, ... }: 1 2 { 2 3 den.default.nixos.system.stateVersion = "25.11"; 3 4 den.default.homeManager.home.stateVersion = "25.11"; 5 + 6 + # enable hm by default 7 + den.schema.user.classes = lib.mkDefault [ "homeManager" ]; 8 + 9 + # host<->user provides 10 + den.ctx.user.includes = [ den._.mutual-provider ]; 4 11 5 12 # User TODO: REMOVE THIS 6 13 den.aspects.tux.nixos = {
+1 -1
templates/default/modules/igloo.nix
··· 9 9 }; 10 10 11 11 # host provides default home environment for its users 12 - homeManager = 12 + provides.to-users.homeManager = 13 13 { pkgs, ... }: 14 14 { 15 15 home.packages = [ pkgs.vim ];
+1 -1
templates/default/modules/tux.nix
··· 15 15 16 16 # user can provide NixOS configurations 17 17 # to any host it is included on 18 - # nixos = { pkgs, ... }: { }; 18 + provides.to-hosts.nixos = { pkgs, ... }: { }; 19 19 }; 20 20 }
+6 -2
templates/example/modules/den.nix
··· 1 + { lib, ... }: 1 2 { 2 - den.hosts.x86_64-linux.igloo.users.alice.classes = [ "homeManager" ]; 3 - den.hosts.aarch64-darwin.apple.users.alice.classes = [ "homeManager" ]; 3 + den.hosts.x86_64-linux.igloo.users.alice = { }; 4 + den.hosts.aarch64-darwin.apple.users.alice = { }; 4 5 den.homes.x86_64-linux.alice = { }; 6 + 7 + # enable hm for all users 8 + den.schema.user.classes = lib.mkDefault [ "homeManager" ]; 5 9 }
-1
templates/example/modules/inputs.nix
··· 7 7 # 8 8 # For our template, we enable home-manager and nix-darwin by default, but 9 9 # you are free to remove them if not being used by you. 10 - { ... }: 11 10 { 12 11 13 12 flake-file.inputs = {