Files
nixos-config/flake.nix

44 lines
1.1 KiB
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
};
2024-08-07 11:31:13 +02:00
outputs =
inputs@{ nixpkgs, home-manager, ... }:
{
nixosConfigurations =
let
mkSystem =
entrypoint:
nixpkgs.lib.nixosSystem {
system = "x86_64-linux";
specialArgs = {
inherit inputs;
2024-01-04 14:07:22 +01:00
};
2024-08-07 11:31:13 +02:00
modules = [
entrypoint
{ nix.registry.nixpkgs.flake = nixpkgs; }
home-manager.nixosModules.home-manager
{
home-manager = {
useGlobalPkgs = true;
useUserPackages = true;
};
}
];
};
in
{
pc = mkSystem ./nixos-configurations/pc;
laptop = mkSystem ./nixos-configurations/laptop;
2024-01-04 14:07:22 +01:00
};
2023-03-27 12:44:37 +02:00
};
}