{ description = "My nix setup"; inputs = { nixpkgs.url = "nixpkgs/nixos-unstable"; nix-index-database = { url = "github:Mic92/nix-index-database"; inputs.nixpkgs.follows = "nixpkgs"; }; sops-nix = { inputs.nixpkgs.follows = "nixpkgs"; }; impermanence.url = "github:nix-community/impermanence"; home-manager = { inputs = { nixpkgs.follows = "nixpkgs"; }; }; nix-colors.url = "github:Misterio77/nix-colors"; hyprland.url = "github:hyprwm/Hyprland"; purge = { url = "github:therealr5/purge"; inputs.nixpkgs.follows = "nixpkgs"; }; trucksimulatorbot-images = { url = "github:therealr5/trucksimulatorbot-images"; inputs.nixpkgs.follows = "nixpkgs"; }; }; outputs = { self , nixpkgs , home-manager , nix-index-database , hyprland , sops-nix , impermanence , nix-colors , nixos-hardware , purge , trucksimulatorbot-images , ... }@attrs: { packages.x86_64-linux.iso = self.nixosConfigurations.iso.config.system.build.isoImage; packages.x86_64-linux.jmri = nixpkgs.legacyPackages.x86_64-linux.callPackage ./pkgs/jmri { }; # packages.x86_64-linux.circuitjs = nixpkgs.legacyPackages.x86_64-linux.callPackage ./pkgs/circuitjs { }; hydraJobs = self.packages; formatter.x86_64-linux = nixpkgs.legacyPackages.x86_64-linux.nixpkgs-fmt; nixosConfigurations = rec { thinkpad = nixpkgs.lib.nixosSystem { system = "x86_64-linux"; specialArgs = attrs; modules = [ ./hosts/thinkpad ./shared ./users/rouven nixos-hardware.nixosModules.common-pc-laptop-ssd home-manager.nixosModules.home-manager sops-nix.nixosModules.sops nix-index-database.nixosModules.nix-index impermanence.nixosModules.impermanence { home-manager.extraSpecialArgs = attrs; home-manager.users.rouven = { imports = [ nix-colors.homeManagerModules.default hyprland.homeManagerModules.default sops-nix.homeManagerModules.sops ]; }; } ]; }; nuc = nixpkgs.lib.nixosSystem { system = "x86_64-linux"; specialArgs.inputs = attrs; modules = [ nixos-hardware.nixosModules.intel-nuc-8i7beh nix-index-database.nixosModules.nix-index ./hosts/nuc ./shared sops-nix.nixosModules.sops # hacking this into here since it somehow doesnt' work as module { services.pixiecore = rec { enable = true; port = 64172; statusPort = port; openFirewall = true; kernel = "${netboot.config.system.build.kernel}/bzImage"; initrd = "${netboot.config.system.build.netbootRamdisk}/initrd"; cmdLine = "init=${netboot.config.system.build.toplevel}/init loglevel=4"; }; } ]; }; falkenstein-1 = nixpkgs.lib.nixosSystem { system = "x86_64-linux"; specialArgs.inputs = attrs; modules = [ ./hosts/falkenstein-1 ./shared nix-index-database.nixosModules.nix-index sops-nix.nixosModules.sops purge.nixosModules.default trucksimulatorbot-images.nixosModules.default ]; }; vm = nixpkgs.lib.nixosSystem { system = "x86_64-linux"; specialArgs.inputs = attrs; modules = [ ./hosts/vm ./shared nix-index-database.nixosModules.nix-index sops-nix.nixosModules.sops ]; }; iso = nixpkgs.lib.nixosSystem { system = "x86_64-linux"; specialArgs.inputs = attrs; modules = [ ./hosts/iso ./shared/caches.nix ./shared/vim.nix ]; }; netboot = nixpkgs.lib.nixosSystem { system = "x86_64-linux"; specialArgs.inputs = attrs; modules = [ ./hosts/netboot ./shared/caches.nix ./shared/vim.nix ]; }; }; }; }