Files
nixos/flake.nix
T
2025-07-14 15:12:21 +02:00

36 lines
928 B
Nix

{
description = "NixOS config with modules, host overrides, and Home Manager";
inputs = {
nixpkgs.url = "nixpkgs/nixos-25.05";
nixpkgs-unstable.url = "github:nixos/nixpkgs/nixos-unstable";
home-manager.url = "github:nix-community/home-manager/release-24.05";
home-manager.inputs.nixpkgs.follows = "nixpkgs";
};
outputs = { self, nixpkgs, home-manager, ... }: {
nixosConfigurations = {
dev-vm = nixpkgs.lib.nixosSystem {
system = "x86_64-linux";
specialArgs = {
inherit home-manager;
};
modules = [
./common.nix
./hosts/dev-vm/default.nix
];
};
alex-laptop = nixpkgs.lib.nixosSystem {
system = "x86_64-linux";
specialArgs = {
inherit home-manager;
};
modules = [
./system/common.nix
./hosts/alex-laptop/default.nix
];
};
};
};
}