My new new dotfiles :3
0
fork

Configure Feed

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

refactor: remove everything unnessesary

+1 -80
-9
modules/eg/ci-no-boot.nix
··· 1 - { 2 - eg.ci-no-boot = { 3 - description = "Disables booting during CI"; 4 - nixos = { 5 - boot.loader.grub.enable = false; 6 - fileSystems."/".device = "/dev/null"; 7 - }; 8 - }; 9 - }
-36
modules/eg/routes.nix
··· 1 - # This example implements an aspect "routing" pattern. 2 - # 3 - # Unlike `den.default` which is `parametric.atLeast` 4 - # we use `parametric.fixedTo` here, which help us 5 - # propagate an already computed context to all includes. 6 - # 7 - # This aspect, when installed in a `parametric.atLeast` 8 - # will just forward the same context. 9 - # The `mutual` helper returns an static configuration which 10 - # is ignored by parametric aspects, thus allowing 11 - # non-existing aspects to be just ignored. 12 - # 13 - # Be sure to read: https://vic.github.io/den/dependencies.html 14 - # See usage at: defaults.nix, alice.nix, igloo.nix 15 - # 16 - { den, ... }: 17 - { 18 - # Usage: `den.default.includes [ eg.routes ]` 19 - eg.routes = 20 - let 21 - inherit (den.lib) parametric; 22 - 23 - # eg, `<user>._.<host>` and `<host>._.<user>` 24 - mutual = from: to: den.aspects.${from.aspect}._.${to.aspect} or { }; 25 - 26 - routes = 27 - { host, user, ... }@ctx: 28 - parametric.fixedTo ctx { 29 - includes = [ 30 - (mutual user host) 31 - (mutual host user) 32 - ]; 33 - }; 34 - in 35 - routes; 36 - }
-16
modules/eg/vm-bootable.nix
··· 1 - let 2 - installer = variant: { 3 - nixos = 4 - { modulesPath, ... }: 5 - { 6 - imports = [ (modulesPath + "/installer/cd-dvd/installation-cd-${variant}.nix") ]; 7 - }; 8 - }; 9 - in 10 - { 11 - # make USB/VM installers. 12 - eg.vm-bootable.provides = { 13 - tui = installer "minimal"; 14 - gui = installer "graphical-base"; 15 - }; 16 - }
-14
modules/eg/vm.nix
··· 1 - { eg, ... }: 2 - { 3 - eg.vm.provides = { 4 - gui.includes = [ 5 - eg.vm 6 - eg.vm-bootable._.gui 7 - ]; 8 - 9 - tui.includes = [ 10 - eg.vm 11 - eg.vm-bootable._.tui 12 - ]; 13 - }; 14 - }
-1
modules/namespace.nix
··· 1 1 { inputs, den, ... }: 2 2 { 3 3 imports = [ 4 - (inputs.den.namespace "eg" false) 5 4 (inputs.den.namespace "my" false) 6 5 ]; 7 6
+1 -4
modules/tests.nix
··· 11 11 let 12 12 checkCond = name: cond: pkgs.runCommandLocal name { } (if cond then "touch $out" else ""); 13 13 bismuth = inputs.self.nixosConfigurations.bismuth.config; 14 - vmBuilds = !pkgs.stdenvNoCC.isLinux || builtins.pathExists (self'.packages.vm + "/bin/vm"); 15 14 bismuthBuilds = !pkgs.stdenvNoCC.isLinux || builtins.pathExists (bismuth.system.build.toplevel); 16 15 in 17 16 { 18 - # Disable while devving. This might be enabled again in the future idk /shrug 19 - # checks."bismuth builds" = checkCond "bismuth-builds" bismuthBuilds; 20 - # checks."vm builds" = checkCond "vm-builds" vmBuilds; 17 + checks."bismuth builds" = checkCond "bismuth-builds" bismuthBuilds; 21 18 }; 22 19 }