nixos-configuration/flake.nix

60 lines
1.4 KiB
Nix
Raw Normal View History

{
inputs = {
nixpkgs.url = "github:NixOS/nixpkgs/nixos-24.05";
home-manager = {
url = "github:nix-community/home-manager/release-24.05";
inputs.nixpkgs.follows = "nixpkgs";
};
lix-module = {
url = "https://git.lix.systems/lix-project/nixos-module/archive/2.91.1-1.tar.gz";
inputs.nixpkgs.follows = "nixpkgs";
};
};
outputs = inputs @ {
nixpkgs,
home-manager,
lix-module,
...
2024-10-26 12:32:15 +02:00
}: let
common-modules = [
lix-module.nixosModules.default
./common
];
in {
nixosConfigurations = {
vinzenz-lpt2 = nixpkgs.lib.nixosSystem {
system = "x86_64-linux";
2024-10-26 12:32:15 +02:00
modules =
common-modules
++ [
2024-10-26 14:59:00 +02:00
home-manager.nixosModules.home-manager
2024-10-26 12:32:15 +02:00
./hosts/vinzenz-lpt2
];
};
2024-10-26 14:59:00 +02:00
vinzenz-pc2 = nixpkgs.lib.nixosSystem {
system = "x86_64-linux";
modules =
common-modules
++ [
home-manager.nixosModules.home-manager
./hosts/vinzenz-pc2
];
};
hetzner-vpn1 = nixpkgs.lib.nixosSystem {
system = "aarch64-linux";
modules =
common-modules
++ [
./hosts/hetzner-vpn1
{
# uncomment for build check on non arm system (requires --impure)
# nixpkgs.buildPlatform = builtins.currentSystem;
}
];
};
};
};
}