Files
nixos-config/flake.nix

37 lines
979 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";
2023-09-19 14:44:43 +02:00
nixos-hardware.url = "github:NixOS/nixos-hardware/master";
2023-07-31 17:39:46 +00:00
home-manager = {
url = "github:nix-community/home-manager";
inputs.nixpkgs.follows = "nixpkgs";
};
2023-03-27 12:44:37 +02:00
};
outputs = inputs@{ nixpkgs, home-manager, ... }: {
2023-06-27 17:52:44 +02:00
nixosConfigurations = let
2024-01-04 14:07:22 +01:00
mkSystem = entrypoint:
nixpkgs.lib.nixosSystem {
system = "x86_64-linux";
specialArgs = { inherit inputs; };
modules = [
entrypoint
{ nix.registry.nixpkgs.flake = nixpkgs; }
home-manager.nixosModules.home-manager
{
home-manager = {
useGlobalPkgs = true;
useUserPackages = true;
};
}
];
};
2023-06-27 17:52:44 +02:00
in {
pc = mkSystem ./nixos-configurations/pc;
laptop = mkSystem ./nixos-configurations/laptop;
2023-03-27 12:44:37 +02:00
};
};
}