nixos-configuration/desktop/flake.nix

45 lines
1.1 KiB
Nix
Raw Normal View History

2023-11-17 11:58:33 +00:00
{
description = "NixOS Flake";
inputs = {
2023-12-08 15:59:18 +00:00
nixpkgs.url = "github:NixOS/nixpkgs/nixos-23.05";
bootstrap = {
url = "github:jrpotter/bootstrap/v0.1.2";
inputs.nixpkgs.follows = "nixpkgs";
};
2023-11-17 11:58:33 +00:00
home-manager = {
url = "github:nix-community/home-manager/release-23.05";
inputs.nixpkgs.follows = "nixpkgs";
};
};
2023-12-08 16:39:14 +00:00
outputs = { nixpkgs, bootstrap, home-manager, ... }:
2023-11-26 23:47:09 +00:00
let
2023-11-17 11:58:33 +00:00
system = "x86_64-linux";
2023-11-26 23:47:09 +00:00
in
{
nixosConfigurations.nixos = nixpkgs.lib.nixosSystem {
inherit system;
2023-12-08 15:59:18 +00:00
2023-11-26 23:47:09 +00:00
modules = [
./configuration.nix
home-manager.nixosModules.home-manager
{
home-manager = {
useGlobalPkgs = true;
useUserPackages = true;
2023-12-08 15:59:18 +00:00
2023-11-26 23:47:09 +00:00
users.jrpotter = import ./jrpotter;
2023-12-08 15:59:18 +00:00
2023-11-26 23:47:09 +00:00
# Used to pass non-default parameters to submodules.
extraSpecialArgs = {
inherit system;
bootstrap = bootstrap.packages.${system}.default;
};
};
}
];
};
2023-11-17 11:58:33 +00:00
};
}