nixos-configuration/flake.nix

54 lines
1.4 KiB
Nix
Raw Normal View History

{
inputs = {
2024-11-24 15:16:45 +01:00
nixpkgs.url = "github:NixOS/nixpkgs/nixos-24.11";
2024-11-24 18:10:44 +01:00
home-manager = {
2024-11-24 15:16:45 +01:00
url = "github:nix-community/home-manager/release-24.11";
inputs.nixpkgs.follows = "nixpkgs";
};
2024-11-24 18:10:44 +01:00
lix-module = {
url = "https://git.lix.systems/lix-project/nixos-module/archive/2.91.1-1.tar.gz";
inputs.nixpkgs.follows = "nixpkgs";
};
};
2024-10-27 12:33:35 +01:00
outputs =
{
2024-11-24 18:10:44 +01:00
self,
2024-10-27 12:33:35 +01:00
nixpkgs,
home-manager,
2024-12-14 13:25:34 +01:00
lix-module
2024-10-27 12:33:35 +01:00
}:
{
nixosConfigurations =
let
host-params = {
inherit nixpkgs;
inherit home-manager;
inherit lix-module;
common-modules = [
lix-module.nixosModules.default
./common
];
desktop-modules = [
home-manager.nixosModules.home-manager
./home
./modules/desktop-environment.nix
./modules/desktop-hardware.nix
];
};
in
{
vinzenz-lpt2 = import ./hosts/vinzenz-lpt2 host-params;
vinzenz-pc2 = import ./hosts/vinzenz-pc2 host-params;
2024-12-01 12:07:45 +01:00
hetzner-vpn2 = import ./hosts/hetzner-vpn2 host-params;
2024-10-27 12:33:35 +01:00
};
formatter = {
x86_64-linux = nixpkgs.legacyPackages.x86_64-linux.nixfmt-rfc-style;
aarch64-linux = nixpkgs.legacyPackages.aarch64-linux.nixfmt-rfc-style;
2024-10-26 14:59:00 +02:00
};
};
}