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

remove fmt checks from bogus template

+21 -27
+2 -2
templates/bogus/.github/workflows/test.yml
··· 14 steps: 15 - uses: wimpysworld/nothing-but-nix@main 16 if: matrix.os == 'ubuntu-latest' 17 - - uses: DeterminateSystems/nix-installer-action@main 18 - - uses: DeterminateSystems/magic-nix-cache-action@main 19 - uses: actions/checkout@v5 20 - run: nix flake metadata 21 - run: nix flake check
··· 14 steps: 15 - uses: wimpysworld/nothing-but-nix@main 16 if: matrix.os == 'ubuntu-latest' 17 + - uses: cachix/install-nix-action@v31 18 + - uses: DeterminateSystems/magic-nix-cache-action@13 19 - uses: actions/checkout@v5 20 - run: nix flake metadata 21 - run: nix flake check
+7 -13
templates/bogus/modules/flakes.nix
··· 7 # IF you make any change to this file, use: 8 # `nix run .#write-flake` 9 # 10 - # We provide nix-unit and home-manager for common 11 - # usage. 12 { inputs, ... }: 13 { 14 # change "main" with a commit where bug is present 15 flake-file.inputs.den.url = "github:vic/den/main"; 16 17 - flake-file.inputs.nix-unit = { 18 - url = "github:nix-community/nix-unit"; 19 - inputs.nixpkgs.follows = "nixpkgs"; 20 - inputs.flake-parts.follows = "flake-parts"; 21 - inputs.treefmt-nix.follows = "treefmt-nix"; 22 - }; 23 - 24 flake-file.inputs.home-manager = { 25 url = "github:nix-community/home-manager"; 26 inputs.nixpkgs.follows = "nixpkgs"; 27 }; 28 29 - imports = [ 30 - inputs.nix-unit.modules.flake.default 31 - ]; 32 - 33 }
··· 7 # IF you make any change to this file, use: 8 # `nix run .#write-flake` 9 # 10 + # We provide nix-darwin and home-manager for common usage. 11 { inputs, ... }: 12 { 13 # change "main" with a commit where bug is present 14 flake-file.inputs.den.url = "github:vic/den/main"; 15 16 + # included so we can test HM integrations. 17 flake-file.inputs.home-manager = { 18 url = "github:nix-community/home-manager"; 19 inputs.nixpkgs.follows = "nixpkgs"; 20 }; 21 22 + # included for testing darwin hosts. 23 + darwin = { 24 + url = "github:nix-darwin/nix-darwin"; 25 + inputs.nixpkgs.follows = "nixpkgs"; 26 + }; 27 }
-12
templates/bogus/modules/formatter.nix
··· 1 - { 2 - perSystem = { 3 - treefmt = { 4 - projectRootFile = "flake.nix"; 5 - programs.nixfmt.enable = true; 6 - programs.nixfmt.excludes = [ ".direnv" ]; 7 - programs.deadnix.enable = true; 8 - programs.mdformat.enable = true; 9 - programs.yamlfmt.enable = true; 10 - }; 11 - }; 12 - }
···
+12
templates/bogus/modules/nix-unit.nix
··· 1 # DO-NOT-EDIT: nix-unit configuration. 2 { lib, inputs, ... }: 3 { 4 perSystem.nix-unit = { 5 allowNetwork = lib.mkDefault true; 6 inputs = lib.mkDefault inputs;
··· 1 # DO-NOT-EDIT: nix-unit configuration. 2 { lib, inputs, ... }: 3 { 4 + 5 + flake-file.inputs.nix-unit = { 6 + url = "github:nix-community/nix-unit"; 7 + inputs.nixpkgs.follows = "nixpkgs"; 8 + inputs.flake-parts.follows = "flake-parts"; 9 + inputs.treefmt-nix.follows = "treefmt-nix"; 10 + }; 11 + 12 + imports = [ 13 + inputs.nix-unit.modules.flake.default 14 + ]; 15 + 16 perSystem.nix-unit = { 17 allowNetwork = lib.mkDefault true; 18 inputs = lib.mkDefault inputs;