2024-08-24 22:16:51 -04:00
|
|
|
{
|
|
|
|
inputs = {
|
2024-11-02 17:19:40 -04:00
|
|
|
# System inputs
|
2024-10-15 02:40:43 -04:00
|
|
|
nixpkgs.url = "nixpkgs/nixos-24.05";
|
|
|
|
unstable.url = "nixpkgs/nixos-unstable";
|
2024-11-02 17:19:40 -04:00
|
|
|
hardware.url = "github:nixos/nixos-hardware/master";
|
2024-10-15 02:40:43 -04:00
|
|
|
|
2024-11-02 17:19:40 -04:00
|
|
|
lanzaboote = {
|
|
|
|
url = "github:nix-community/lanzaboote/v0.4.1";
|
2024-10-15 02:40:43 -04:00
|
|
|
inputs.nixpkgs.follows = "nixpkgs";
|
|
|
|
};
|
|
|
|
|
2024-11-02 17:19:40 -04:00
|
|
|
disko = {
|
|
|
|
url = "github:nix-community/disko";
|
|
|
|
inputs.nixpkgs.follows = "nixpkgs";
|
2024-10-22 03:22:05 -04:00
|
|
|
};
|
|
|
|
|
2024-11-02 17:19:40 -04:00
|
|
|
impermanence.url = "github:nix-community/impermanence";
|
|
|
|
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-11-02 17:19:40 -04:00
|
|
|
# Home inputs
|
|
|
|
home-manager = {
|
|
|
|
url = "github:nix-community/home-manager/release-24.05";
|
2024-10-09 03:36:08 -04:00
|
|
|
inputs.nixpkgs.follows = "nixpkgs";
|
|
|
|
};
|
|
|
|
|
2024-11-02 17:19:40 -04:00
|
|
|
nur.url = "github:nix-community/NUR";
|
|
|
|
blender-bin.url = "https://flakehub.com/f/edolstra/blender-bin/1.0.9.tar.gz";
|
2024-08-24 22:16:51 -04:00
|
|
|
};
|
|
|
|
|
2024-10-21 03:47:36 -04:00
|
|
|
outputs = {
|
|
|
|
nixpkgs,
|
|
|
|
unstable,
|
|
|
|
hardware,
|
|
|
|
lanzaboote,
|
2024-11-02 17:19:40 -04:00
|
|
|
disko,
|
|
|
|
impermanence,
|
2024-10-21 03:47:36 -04:00
|
|
|
mailserver,
|
|
|
|
minecraft,
|
2024-11-02 17:19:40 -04:00
|
|
|
home-manager,
|
|
|
|
nur,
|
|
|
|
blender-bin,
|
2024-10-21 03:47:36 -04:00
|
|
|
...
|
|
|
|
}:
|
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
|
|
|
|
hardware
|
|
|
|
lanzaboote
|
2024-11-02 17:19:40 -04:00
|
|
|
disko
|
|
|
|
impermanence
|
2024-10-21 03:58:00 -04:00
|
|
|
mailserver
|
|
|
|
minecraft
|
2024-11-02 17:19:40 -04:00
|
|
|
home-manager
|
|
|
|
nur
|
|
|
|
blender-bin
|
2024-10-21 03:58:00 -04:00
|
|
|
;
|
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-11-06 11:49:40 -05:00
|
|
|
# nixos-rebuild switch --flake /etc/nixos#hostname
|
2024-08-24 22:16:51 -04:00
|
|
|
nixosConfigurations = {
|
2024-11-12 04:25:51 -05:00
|
|
|
tower = mkNix [ ./hosts/tower ]; # Main Desktop
|
2024-10-28 00:11:01 -04:00
|
|
|
|
2024-11-06 11:49:40 -05:00
|
|
|
lacros = mkNix [ ./hosts/lacros ]; # Dell Chromebook
|
2024-11-02 21:05:59 -04:00
|
|
|
redmond = mkNix [ ./hosts/redmond ]; # Lenovo Dual-Boot Laptop
|
2024-11-12 04:25:51 -05:00
|
|
|
pomme = mkNix [ ./hosts/treefruit ]; # Macbook Pro 14,1
|
|
|
|
extern = mkNix [ ./hosts/extern ]; # Portable Hard-Drive
|
2024-10-20 04:25:07 -04:00
|
|
|
|
2024-11-12 04:25:51 -05:00
|
|
|
kitty = mkNix [ ./hosts/kitty ]; # Dell Optiplex 7010
|
|
|
|
xenia = mkNix [ ./hosts/xenia ]; # Acer Veriton X2611G
|
|
|
|
prophet = mkNix [ ./hosts/prophet ]; # Oracle Neoverse-N1
|
2024-08-24 22:16:51 -04:00
|
|
|
};
|
|
|
|
|
2024-11-06 11:49:40 -05:00
|
|
|
# home-manager switch --flake /etc/nixos#username
|
2024-11-02 17:19:40 -04:00
|
|
|
homeConfigurations."jimbo" = mkHome [ ./modules/home ] nixpkgs.legacyPackages.x86_64-linux;
|
2024-08-24 22:16:51 -04:00
|
|
|
};
|
|
|
|
}
|