Non stop entertainment! The wackiest NixOS configuration to-date. thevoid.cafe/projects/puzzlevision
nixos flake flake-parts dotfiles home-manager nix
at develop 33 lines 767 B view raw
1{ 2 lib, 3 self, 4 inputs, 5 ... 6}: 7{ 8 imports = [ 9 inputs.easy-hosts.flakeModule 10 ]; 11 12 /* 13 Configure easy-hosts to automatically build nixosConfigurations 14 System files are collected from the top level "systems" directory 15 Corresponding modules are automatically injected, based on system type 16 */ 17 easy-hosts = { 18 autoConstruct = true; 19 path = ../../systems; 20 21 perClass = class: { 22 modules = 23 (lib.optionals (class == "nixos") [ 24 inputs.home-manager.nixosModules.default 25 26 # Inject this flake's default nixosModule, 27 # which passes helpers and namespace logic from flake-parts 28 self.nixosModules.default 29 ]) 30 ++ (self.lib.filesystem.dirToModuleList ../${class}); 31 }; 32 }; 33}