2023-01-25 17:53:02 +01:00
|
|
|
{
|
2023-01-28 02:50:14 +01:00
|
|
|
inputs = {
|
|
|
|
nixpkgs.url = "github:NixOS/nixpkgs/nixos-unstable";
|
|
|
|
home-manager = {
|
|
|
|
url = "github:nix-community/home-manager";
|
|
|
|
# should use system nixpkgs instead of their own
|
|
|
|
inputs.nixpkgs.follows = "nixpkgs";
|
|
|
|
};
|
|
|
|
agenix = {
|
|
|
|
url = "github:ryantm/agenix";
|
|
|
|
inputs.nixpkgs.follows = "nixpkgs";
|
|
|
|
};
|
2023-01-25 17:53:02 +01:00
|
|
|
};
|
|
|
|
|
2023-01-28 02:50:14 +01:00
|
|
|
outputs = {
|
|
|
|
self,
|
|
|
|
nixpkgs,
|
|
|
|
home-manager,
|
|
|
|
agenix,
|
|
|
|
...
|
|
|
|
}: let
|
|
|
|
system = "x86_64-linux";
|
|
|
|
in {
|
|
|
|
nixosConfigurations.patricknix = nixpkgs.lib.nixosSystem {
|
|
|
|
inherit system;
|
2023-01-25 17:53:02 +01:00
|
|
|
modules = [
|
2023-01-28 02:50:14 +01:00
|
|
|
./configuration.nix
|
|
|
|
home-manager.nixosModules.home-manager
|
|
|
|
{
|
|
|
|
home-manager.useGlobalPkgs = true;
|
|
|
|
home-manager.useUserPackages = true;
|
|
|
|
}
|
|
|
|
agenix.nixosModule
|
|
|
|
{
|
|
|
|
nix.registry = {
|
|
|
|
nixpkgs.flake = nixpkgs;
|
|
|
|
p.flake = nixpkgs;
|
|
|
|
pkgs.flake = nixpkgs;
|
|
|
|
};
|
|
|
|
}
|
|
|
|
];
|
2023-01-25 17:53:02 +01:00
|
|
|
};
|
|
|
|
};
|
|
|
|
}
|