Initial commit
This commit is contained in:
commit
cfcc57a8bd
353 changed files with 18756 additions and 0 deletions
27
flake/den/templates/bogus/modules/bug.nix
Normal file
27
flake/den/templates/bogus/modules/bug.nix
Normal file
|
|
@ -0,0 +1,27 @@
|
|||
{ inputs, lib, ... }:
|
||||
{
|
||||
den.hosts.x86_64-linux.igloo.users.tux = { };
|
||||
den.hosts.aarch64-darwin.apple.users.tim = { };
|
||||
|
||||
# Use aspects to create a **minimal** bug reproduction
|
||||
den.aspects.igloo.nixos =
|
||||
{ pkgs, ... }:
|
||||
{
|
||||
users.users.tux.packages = [ pkgs.hello ];
|
||||
};
|
||||
|
||||
# rename "it works", evidently it has bugs
|
||||
flake.tests."test it works" =
|
||||
let
|
||||
tux = inputs.self.nixosConfigurations.igloo.config.users.users.tux;
|
||||
|
||||
expr.len = lib.length tux.packages;
|
||||
expr.names = map lib.getName tux.packages;
|
||||
|
||||
expected.len = 1;
|
||||
expected.names = [ "hello" ];
|
||||
in
|
||||
{
|
||||
inherit expr expected;
|
||||
};
|
||||
}
|
||||
7
flake/den/templates/bogus/modules/dendritic.nix
Normal file
7
flake/den/templates/bogus/modules/dendritic.nix
Normal file
|
|
@ -0,0 +1,7 @@
|
|||
{ inputs, lib, ... }:
|
||||
{
|
||||
flake-file.inputs.flake-file.url = lib.mkDefault "github:vic/flake-file";
|
||||
imports = [
|
||||
inputs.flake-file.flakeModules.dendritic
|
||||
];
|
||||
}
|
||||
33
flake/den/templates/bogus/modules/flakes.nix
Normal file
33
flake/den/templates/bogus/modules/flakes.nix
Normal file
|
|
@ -0,0 +1,33 @@
|
|||
# DO-NOT-CHANGE. Keep your reproduction minimalistic!
|
||||
#
|
||||
# try not adding new inputs
|
||||
# but if you have no options (pun intended)
|
||||
# here's the place.
|
||||
#
|
||||
# IF you make any change to this file, use:
|
||||
# `nix run .#write-flake`
|
||||
#
|
||||
# We provide nix-unit and home-manager for common
|
||||
# usage.
|
||||
{ inputs, ... }:
|
||||
{
|
||||
# change "main" with a commit where bug is present
|
||||
flake-file.inputs.den.url = "github:vic/den/main";
|
||||
|
||||
flake-file.inputs.nix-unit = {
|
||||
url = "github:nix-community/nix-unit";
|
||||
inputs.nixpkgs.follows = "nixpkgs";
|
||||
inputs.flake-parts.follows = "flake-parts";
|
||||
inputs.treefmt-nix.follows = "treefmt-nix";
|
||||
};
|
||||
|
||||
flake-file.inputs.home-manager = {
|
||||
url = "github:nix-community/home-manager";
|
||||
inputs.nixpkgs.follows = "nixpkgs";
|
||||
};
|
||||
|
||||
imports = [
|
||||
inputs.nix-unit.modules.flake.default
|
||||
];
|
||||
|
||||
}
|
||||
12
flake/den/templates/bogus/modules/formatter.nix
Normal file
12
flake/den/templates/bogus/modules/formatter.nix
Normal file
|
|
@ -0,0 +1,12 @@
|
|||
{
|
||||
perSystem = {
|
||||
treefmt = {
|
||||
projectRootFile = "flake.nix";
|
||||
programs.nixfmt.enable = true;
|
||||
programs.nixfmt.excludes = [ ".direnv" ];
|
||||
programs.deadnix.enable = true;
|
||||
programs.mdformat.enable = true;
|
||||
programs.yamlfmt.enable = true;
|
||||
};
|
||||
};
|
||||
}
|
||||
8
flake/den/templates/bogus/modules/nix-unit.nix
Normal file
8
flake/den/templates/bogus/modules/nix-unit.nix
Normal file
|
|
@ -0,0 +1,8 @@
|
|||
# DO-NOT-EDIT: nix-unit configuration.
|
||||
{ lib, inputs, ... }:
|
||||
{
|
||||
perSystem.nix-unit = {
|
||||
allowNetwork = lib.mkDefault true;
|
||||
inputs = lib.mkDefault inputs;
|
||||
};
|
||||
}
|
||||
17
flake/den/templates/bogus/modules/test-base.nix
Normal file
17
flake/den/templates/bogus/modules/test-base.nix
Normal file
|
|
@ -0,0 +1,17 @@
|
|||
{ den, ... }:
|
||||
{
|
||||
den.default.nixos.system.stateVersion = "25.11";
|
||||
den.default.homeManager.home.stateVersion = "25.11";
|
||||
den.default.darwin.system.stateVersion = 6;
|
||||
|
||||
den.default.includes = [
|
||||
den._.home-manager
|
||||
den._.define-user
|
||||
den.aspects.no-boot
|
||||
];
|
||||
|
||||
den.aspects.no-boot.nixos = {
|
||||
boot.loader.grub.enable = false;
|
||||
fileSystems."/".device = "/dev/fake";
|
||||
};
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue