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.

Add hjem to noflake example (#275)

authored by

Victor Borja and committed by
GitHub
c5320826 08267aaa

+49 -20
+12 -6
templates/noflake/modules/den.nix
··· 10 10 }; 11 11 12 12 # tux user on igloo host, using nix-maid 13 - den.hosts.x86_64-linux.igloo.users.tux.classes = [ "maid" ]; 14 - # tux on iceberg host with NixOS user environment 15 - den.hosts.x86_64-linux.iceberg.users.tux.classes = [ "user" ]; 13 + den.hosts.x86_64-linux.igloo.users = { 14 + tux.classes = [ "maid" ]; 15 + pingu.classes = [ "hjem" ]; 16 + }; 16 17 17 18 # first: `npins add -n darwin github nix-darwin nix-darwin` 18 19 # den.hosts.aarch64-darwin.apple.users.tux.classes = [ "hjem" ]; ··· 28 29 }; 29 30 }; 30 31 32 + # include den batteries or your own re-usable aspects 33 + # this affects all users, could also be done per user 34 + den.ctx.user.includes = [ den.provides.define-user ]; 35 + 31 36 # user aspect 32 37 den.aspects.tux = { 33 - # den batteries or your own re-usable aspects 34 - includes = [ den.provides.define-user ]; 35 - 36 38 # user configures host <nixos/darwin>.users.users.tux.description 37 39 # Read docs about the `user` class. 38 40 user.description = "Cute Penguin"; ··· 49 51 [user] 50 52 name=Tux 51 53 ''; 54 + }; 55 + 56 + den.aspects.pingu = { 57 + hjem.files.".foo".text = "bar"; 52 58 }; 53 59 }
+37 -14
templates/noflake/npins/sources.json
··· 9 9 }, 10 10 "branch": "main", 11 11 "submodules": false, 12 - "revision": "2f1cfa0167e7c11785f08b7110e5a9a9c9d61efc", 13 - "url": "https://github.com/vic/den/archive/2f1cfa0167e7c11785f08b7110e5a9a9c9d61efc.tar.gz", 14 - "hash": "sha256-OG/9BWHYtKwzKBXikNlZDyRBKPvwNnZ7hUj85ZWEmqY=" 12 + "revision": "08267aaa37bb447f28f4c44bd29a65387eebf4ba", 13 + "url": "https://github.com/vic/den/archive/08267aaa37bb447f28f4c44bd29a65387eebf4ba.tar.gz", 14 + "hash": "sha256-RpBU5YCDHNLL94xYQHYtl7aU0LzzfwGOkTCPKm9O5U0=" 15 15 }, 16 16 "flake-aspects": { 17 17 "type": "Git", ··· 22 22 }, 23 23 "branch": "main", 24 24 "submodules": false, 25 - "revision": "cc5a09d16af05210afe01c22f6b868929a4163b6", 26 - "url": "https://github.com/vic/flake-aspects/archive/cc5a09d16af05210afe01c22f6b868929a4163b6.tar.gz", 27 - "hash": "sha256-sSdYZiIeo98LmdnCR5GMN8B8bsHFgWA+1l9ZEpwXrFU=" 25 + "revision": "b51a00bc0140e7708e421a64f20170a2e8ccae93", 26 + "url": "https://github.com/vic/flake-aspects/archive/b51a00bc0140e7708e421a64f20170a2e8ccae93.tar.gz", 27 + "hash": "sha256-sPPriYJpLmukixc6/KBzeOhw83OSodco5YbeayHzAgo=" 28 + }, 29 + "hjem": { 30 + "type": "Git", 31 + "repository": { 32 + "type": "GitHub", 33 + "owner": "feel-co", 34 + "repo": "hjem" 35 + }, 36 + "branch": "main", 37 + "submodules": false, 38 + "revision": "0290776d1418a475b785c1eacc91f655d11f331b", 39 + "url": "https://github.com/feel-co/hjem/archive/0290776d1418a475b785c1eacc91f655d11f331b.tar.gz", 40 + "hash": "sha256-SxJl+VllncXrqOv045TulgPHZSEiow7ItsA7GLcJq48=" 28 41 }, 29 42 "import-tree": { 30 43 "type": "Git", ··· 58 71 "url": "https://releases.nixos.org/nixpkgs/nixpkgs-26.05pre955350.c0f3d81a7ddb/nixexprs.tar.xz", 59 72 "hash": "sha256-BHKMR414WpfUddNyUtx2GR1VPl0R9sWGQs/opgYm9rc=" 60 73 }, 74 + "smfh": { 75 + "type": "Git", 76 + "repository": { 77 + "type": "GitHub", 78 + "owner": "feel-co", 79 + "repo": "smfh" 80 + }, 81 + "branch": "master", 82 + "submodules": false, 83 + "revision": "dcc9937332ad77426fa2e8d6c5d8fed037689c69", 84 + "url": "https://github.com/feel-co/smfh/archive/dcc9937332ad77426fa2e8d6c5d8fed037689c69.tar.gz", 85 + "hash": "sha256-s75rkkrfle2g0/DTE0XaU9q+yTvrQHTQSrhMEPLGkIc=" 86 + }, 61 87 "with-inputs": { 62 - "type": "GitRelease", 88 + "type": "Git", 63 89 "repository": { 64 90 "type": "GitHub", 65 91 "owner": "vic", 66 92 "repo": "with-inputs" 67 93 }, 68 - "pre_releases": false, 69 - "version_upper_bound": null, 70 - "release_prefix": null, 94 + "branch": "main", 71 95 "submodules": false, 72 - "version": "v0.1.0", 73 - "revision": "8eeec49f4d349ddee87aa6a60ba7f8b25781f747", 74 - "url": "https://api.github.com/repos/vic/with-inputs/tarball/refs/tags/v0.1.0", 75 - "hash": "sha256-5TOTPl8CYewaDoV5O7zvezQeA/NrXx3tzjstOMc2oN8=" 96 + "revision": "2966b00a8ee1512c67be16452e99ecd7887c48e6", 97 + "url": "https://github.com/vic/with-inputs/archive/2966b00a8ee1512c67be16452e99ecd7887c48e6.tar.gz", 98 + "hash": "sha256-Y5aKOwIXblMc+FauYfD/ybzjCPWyfEE9RTomYM22mI0=" 76 99 } 77 100 }, 78 101 "version": 7