feat: split flake into multiple hosts and add homelab config
This commit is contained in:
parent
cd07c91676
commit
ebe58addaa
19 changed files with 539 additions and 40 deletions
14
flake.nix
14
flake.nix
|
|
@ -4,8 +4,11 @@
|
|||
nixpkgs.url = "github:nixos/nixpkgs/nixos-unstable";
|
||||
nixos-hardware.url = "github:nixos/nixos-hardware";
|
||||
home-manager.url = "github:nix-community/home-manager";
|
||||
home-manager.inputs.nixpkgs.follows = "nixpkgs";
|
||||
sops-nix.url = "github:Mic92/sops-nix";
|
||||
sops-nix.inputs.nixpkgs.follows = "nixpkgs";
|
||||
};
|
||||
outputs = inputs@{self, nixpkgs, nixos-hardware, ...}:
|
||||
outputs = inputs@{self, nixpkgs, nixos-hardware, sops-nix, ...}:
|
||||
{
|
||||
nixosConfigurations = {
|
||||
neon = nixpkgs.lib.nixosSystem {
|
||||
|
|
@ -13,11 +16,18 @@
|
|||
modules = [
|
||||
# https://github.com/NixOS/nixos-hardware/blob/master/README.md#using-nix-flakes-support
|
||||
nixos-hardware.nixosModules.gpd-pocket-3
|
||||
./configuration.nix
|
||||
./hosts/neon
|
||||
# override from nixos-hardware
|
||||
({config, lib, ...}: { services.xserver.videoDrivers = lib.mkForce [ "modesetting" ]; })
|
||||
];
|
||||
};
|
||||
lithium = nixpkgs.lib.nixosSystem {
|
||||
system = "x86_64-linux";
|
||||
modules = [
|
||||
./hosts/lithium
|
||||
sops-nix.nixosModules.sops
|
||||
];
|
||||
};
|
||||
};
|
||||
};
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue