Files
nixos-config/flake.nix

41 lines
1001 B
Nix
Raw Normal View History

2023-03-27 12:44:37 +02:00
{
description = "NixOS configuration";
inputs = {
nixpkgs.url = "github:nixos/nixpkgs/nixos-unstable";
home-manager.url = "github:nix-community/home-manager";
home-manager.inputs.nixpkgs.follows = "nixpkgs";
};
2023-06-05 12:49:13 +02:00
outputs = { nixpkgs, home-manager, ... }: {
2023-03-27 12:44:37 +02:00
nixosConfigurations = {
pc = nixpkgs.lib.nixosSystem {
2023-03-27 12:44:37 +02:00
system = "x86_64-linux";
modules = [
./nixos-configurations/pc
home-manager.nixosModules.home-manager
{
home-manager = {
useGlobalPkgs = true;
useUserPackages = true;
};
}
];
};
laptop = nixpkgs.lib.nixosSystem {
system = "x86_64-linux";
modules = [
./nixos-configurations/laptop
2023-03-27 12:44:37 +02:00
home-manager.nixosModules.home-manager
{
home-manager = {
useGlobalPkgs = true;
useUserPackages = true;
};
}
];
};
};
};
}