2024-08-24 22:16:51 -04:00
|
|
|
{
|
|
|
|
inputs = {
|
2024-10-15 02:40:43 -04:00
|
|
|
nixpkgs.url = "nixpkgs/nixos-24.05";
|
|
|
|
unstable.url = "nixpkgs/nixos-unstable";
|
|
|
|
|
|
|
|
home-manager = {
|
|
|
|
url = "github:nix-community/home-manager/release-24.05";
|
|
|
|
inputs.nixpkgs.follows = "nixpkgs";
|
|
|
|
};
|
|
|
|
|
2024-08-24 22:16:51 -04:00
|
|
|
nur.url = "github:nix-community/NUR";
|
2024-10-22 03:22:05 -04:00
|
|
|
chaotic = {
|
|
|
|
url = "github:chaotic-cx/nyx/nyxpkgs-unstable";
|
|
|
|
inputs.nixpkgs.follows = "unstable";
|
|
|
|
};
|
|
|
|
|
2024-10-13 13:01:09 -04:00
|
|
|
blender-bin.url = "https://flakehub.com/f/edolstra/blender-bin/1.0.9.tar.gz";
|
2024-09-23 11:41:28 -04:00
|
|
|
hardware.url = "github:nixos/nixos-hardware/master";
|
2024-08-24 22:16:51 -04:00
|
|
|
|
2024-10-09 03:36:08 -04:00
|
|
|
lanzaboote = {
|
|
|
|
url = "github:nix-community/lanzaboote/v0.4.1";
|
|
|
|
inputs.nixpkgs.follows = "nixpkgs";
|
|
|
|
};
|
|
|
|
|
2024-10-15 02:40:43 -04:00
|
|
|
mailserver.url = "gitlab:simple-nixos-mailserver/nixos-mailserver/nixos-24.05";
|
|
|
|
minecraft.url = "github:Infinidoge/nix-minecraft";
|
2024-08-24 22:16:51 -04:00
|
|
|
};
|
|
|
|
|
2024-10-21 03:47:36 -04:00
|
|
|
outputs = {
|
|
|
|
nixpkgs,
|
|
|
|
unstable,
|
|
|
|
home-manager,
|
|
|
|
nur,
|
2024-10-22 03:22:05 -04:00
|
|
|
chaotic,
|
2024-10-21 03:47:36 -04:00
|
|
|
blender-bin,
|
|
|
|
hardware,
|
|
|
|
lanzaboote,
|
|
|
|
mailserver,
|
|
|
|
minecraft,
|
|
|
|
...
|
|
|
|
}:
|
2024-10-13 13:01:09 -04:00
|
|
|
let
|
2024-10-21 02:12:30 -04:00
|
|
|
mkNix = modules: nixpkgs.lib.nixosSystem {
|
|
|
|
inherit modules;
|
2024-10-21 03:47:36 -04:00
|
|
|
specialArgs = {
|
|
|
|
inherit
|
2024-10-21 03:58:00 -04:00
|
|
|
unstable
|
2024-10-22 03:22:05 -04:00
|
|
|
chaotic
|
2024-10-21 03:58:00 -04:00
|
|
|
hardware
|
|
|
|
lanzaboote
|
|
|
|
mailserver
|
|
|
|
minecraft
|
|
|
|
;
|
2024-10-21 03:47:36 -04:00
|
|
|
};
|
2024-10-21 02:12:30 -04:00
|
|
|
};
|
2024-10-13 02:23:51 -04:00
|
|
|
mkHome = modules: pkgs: home-manager.lib.homeManagerConfiguration {
|
|
|
|
inherit modules pkgs;
|
2024-10-21 03:47:36 -04:00
|
|
|
extraSpecialArgs = {
|
|
|
|
inherit
|
2024-10-21 03:58:00 -04:00
|
|
|
unstable
|
|
|
|
nur
|
|
|
|
blender-bin
|
|
|
|
;
|
2024-10-21 03:47:36 -04:00
|
|
|
};
|
2024-10-13 02:23:51 -04:00
|
|
|
};
|
|
|
|
in {
|
2024-10-15 02:40:43 -04:00
|
|
|
# nixos-rebuild switch --flake .#hostname
|
2024-08-24 22:16:51 -04:00
|
|
|
nixosConfigurations = {
|
2024-10-26 23:55:40 -04:00
|
|
|
firefly = mkNix [ ./hosts/firefly/system ]; # Main Desktop
|
|
|
|
shuttleworth = mkNix [ ./hosts/shuttleworth/system ]; # Pinebook Pro
|
|
|
|
lacros = mkNix [ ./hosts/lacros/system ]; # Dell Chromebook
|
|
|
|
redmond = mkNix [ ./hosts/redmond/system ]; # Lenovo Laptop
|
|
|
|
treefruit = mkNix [ ./hosts/treefruit/system ]; # Macbook 14,1
|
2024-10-20 04:25:07 -04:00
|
|
|
|
2024-10-26 23:55:40 -04:00
|
|
|
cyberspark = mkNix [ ./hosts/cyberspark/system ]; # Dell Optiplex 7010
|
|
|
|
bomberman = mkNix [ ./hosts/bomberman/system ]; # Oracle ARM
|
2024-08-24 22:16:51 -04:00
|
|
|
};
|
|
|
|
|
2024-10-15 02:40:43 -04:00
|
|
|
# home-manager switch --flake .#username@hostname
|
2024-08-24 22:16:51 -04:00
|
|
|
homeConfigurations = {
|
2024-10-15 02:40:43 -04:00
|
|
|
"jimbo@firefly" = mkHome [ ./hosts/firefly/home ] nixpkgs.legacyPackages.x86_64-linux;
|
|
|
|
"jimbo@shuttleworth" = mkHome [ ./hosts/shuttleworth/home ] nixpkgs.legacyPackages.aarch64-linux;
|
2024-10-18 15:32:32 -04:00
|
|
|
"jimbo@lacros" = mkHome [ ./hosts/lacros/home ] nixpkgs.legacyPackages.x86_64-linux;
|
2024-10-20 18:56:59 -04:00
|
|
|
"jimbo@redmond" = mkHome [ ./hosts/redmond/home ] nixpkgs.legacyPackages.x86_64-linux;
|
2024-10-26 23:55:40 -04:00
|
|
|
"jimbo@treefruit" = mkHome [ ./hosts/treefruit/home ] nixpkgs.legacyPackages.x86_64-linux;
|
2024-10-20 04:25:07 -04:00
|
|
|
|
|
|
|
"jimbo@cyberspark" = mkHome [ ./hosts/cyberspark/home ] nixpkgs.legacyPackages.x86_64-linux;
|
|
|
|
"jimbo@bomberman" = mkHome [ ./hosts/bomberman/home ] nixpkgs.legacyPackages.aarch64-linux;
|
2024-08-24 22:16:51 -04:00
|
|
|
};
|
|
|
|
};
|
|
|
|
}
|