nixos-config/flake.nix

37 lines
891 B
Nix
Raw Permalink Normal View History

2024-04-22 05:42:59 +00:00
# /etc/nixos/flake.nix
{
description = "flake for ark-desktop-nixos";
inputs = {
nixpkgs = {
url = "github:NixOS/nixpkgs/nixos-unstable";
};
2024-04-22 06:13:41 +00:00
home-manager = {
url = "github:nix-community/home-manager/master";
inputs.nixpkgs.follows = "nixpkgs";
};
2024-04-22 07:14:46 +00:00
nur = {
url = "github:nix-community/NUR/master";
};
2024-04-22 05:42:59 +00:00
};
2024-04-22 07:14:46 +00:00
outputs = inputs@{ nixpkgs, home-manager, nur, ... }: {
2024-04-22 05:42:59 +00:00
nixosConfigurations = {
2024-04-22 05:47:28 +00:00
ark-desktop-nixos = nixpkgs.lib.nixosSystem {
2024-04-22 05:42:59 +00:00
system = "x86_64-linux";
modules = [
./configuration.nix
2024-04-22 07:14:46 +00:00
{ nixpkgs.overlays = [ nur.overlay ]; }
2024-04-22 06:13:41 +00:00
home-manager.nixosModules.home-manager
{
home-manager.useGlobalPkgs = true;
home-manager.useUserPackages = true;
home-manager.users.ark = import ./home.nix;
}
2024-04-22 05:42:59 +00:00
];
};
};
};
2024-04-22 07:14:46 +00:00
}