nixos/flake.nix

33 lines
727 B
Nix

{
description = "My flakes configuration";
inputs = {
nixpkgs.url = "github:NixOS/nixpkgs/nixos-24.05";
home-manager.url = "github:nix-community/home-manager/release-24.05";
};
outputs = { self, nixpkgs, home-manager }@inputs:
let
system = "x86_64-linux";
specialArgs = inputs // { inherit system; };
shared-modules = [
home-manager.nixosModules.home-manager
{
home-manager = {
useUserPackages = true;
extraSpecialArgs = specialArgs;
};
}
];
in
{
nixosConfigurations = {
nos = nixpkgs.lib.nixosSystem {
specialArgs = specialArgs;
system = system;
modules = shared-modules ++ [ ./nos.nix];
};
};
};
}