Add back Steam Deck and add experimental unstable

This commit is contained in:
Jimbo 2024-10-21 02:12:30 -04:00
parent d4f132616e
commit 14aad2871f
18 changed files with 282 additions and 41 deletions

View file

@ -8,8 +8,14 @@
inputs.nixpkgs.follows = "nixpkgs";
};
home-unstable = {
url = "github:nix-community/home-manager";
inputs.nixpkgs.follows = "unstable";
};
nur.url = "github:nix-community/NUR";
blender-bin.url = "https://flakehub.com/f/edolstra/blender-bin/1.0.9.tar.gz";
jovian.url = "github:Jovian-Experiments/Jovian-NixOS";
hardware.url = "github:nixos/nixos-hardware/master";
lanzaboote = {
@ -21,35 +27,45 @@
minecraft.url = "github:Infinidoge/nix-minecraft";
};
outputs = { self, nixpkgs, unstable, home-manager, nur, blender-bin, hardware, lanzaboote, mailserver, minecraft, ... }:
outputs = { self, nixpkgs, unstable, home-manager, home-unstable, nur, blender-bin, jovian, hardware, lanzaboote, mailserver, minecraft, ... }:
let
mkNixos = modules: nixpkgs.lib.nixosSystem {
mkNix = modules: nixpkgs.lib.nixosSystem {
inherit modules;
specialArgs = { inherit nixpkgs unstable hardware lanzaboote mailserver minecraft; };
specialArgs = { inherit unstable jovian hardware lanzaboote mailserver minecraft; };
};
mkUnstable = modules: unstable.lib.nixosSystem {
inherit modules;
specialArgs = { inherit unstable jovian hardware lanzaboote mailserver minecraft; };
};
mkHome = modules: pkgs: home-manager.lib.homeManagerConfiguration {
inherit modules pkgs;
extraSpecialArgs = { inherit unstable nur blender-bin; };
};
mkUnHome = modules: pkgs: home-unstable.lib.homeManagerConfiguration {
inherit modules pkgs;
extraSpecialArgs = { inherit unstable nur blender-bin; };
};
in {
# nixos-rebuild switch --flake .#hostname
nixosConfigurations = {
# PCs and Laptops
firefly = mkNixos [ ./hosts/firefly/system ];
shuttleworth = mkNixos [ ./hosts/shuttleworth/system ];
lacros = mkNixos [ ./hosts/lacros/system ];
redmond = mkNixos [ ./hosts/redmond/system ];
firefly = mkNix [ ./hosts/firefly/system ];
shuttleworth = mkNix [ ./hosts/shuttleworth/system ];
jupiter = mkUnstable [ ./hosts/jupiter/system ];
lacros = mkNix [ ./hosts/lacros/system ];
redmond = mkNix [ ./hosts/redmond/system ];
# Servers
cyberspark = mkNixos [ ./hosts/cyberspark/system ];
bomberman = mkNixos [ ./hosts/bomberman/system ];
cyberspark = mkNix [ ./hosts/cyberspark/system ];
bomberman = mkNix [ ./hosts/bomberman/system ];
};
# home-manager switch --flake .#username@hostname
homeConfigurations = {
"jimbo@firefly" = mkHome [ ./hosts/firefly/home ] nixpkgs.legacyPackages.x86_64-linux;
"jimbo@shuttleworth" = mkHome [ ./hosts/shuttleworth/home ] nixpkgs.legacyPackages.aarch64-linux;
"jimbo@jupiter" = mkUnHome [ ./hosts/jupiter/home ] unstable.legacyPackages.x86_64-linux;
"jimbo@lacros" = mkHome [ ./hosts/lacros/home ] nixpkgs.legacyPackages.x86_64-linux;
"jimbo@redmond" = mkHome [ ./hosts/redmond/home ] nixpkgs.legacyPackages.x86_64-linux;