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