2024-03-01 15:22:49 +01:00
|
|
|
{
|
|
|
|
description = "Nixos config flake";
|
|
|
|
|
|
|
|
inputs = {
|
2024-03-07 00:07:23 +01:00
|
|
|
nixpkgs.url = "github:nixos/nixpkgs/nixos-unstable";
|
2024-03-01 15:22:49 +01:00
|
|
|
|
2024-03-01 16:19:41 +01:00
|
|
|
home-manager = {
|
2024-03-07 00:07:23 +01:00
|
|
|
url = "github:nix-community/home-manager";
|
2024-03-01 16:19:41 +01:00
|
|
|
inputs.nixpkgs.follows = "nixpkgs";
|
|
|
|
};
|
2024-03-08 23:28:19 +01:00
|
|
|
|
|
|
|
sops-nix = {
|
|
|
|
url = "github:Mic92/sops-nix";
|
|
|
|
inputs.nixpkgs.follows = "nixpkgs";
|
|
|
|
};
|
2024-03-01 15:22:49 +01:00
|
|
|
};
|
|
|
|
|
2024-03-01 16:19:41 +01:00
|
|
|
outputs = {
|
|
|
|
self,
|
|
|
|
nixpkgs,
|
2024-03-07 00:07:23 +01:00
|
|
|
home-manager,
|
2024-03-08 23:28:19 +01:00
|
|
|
sops-nix,
|
2024-03-01 16:19:41 +01:00
|
|
|
...
|
|
|
|
} @ inputs: let
|
|
|
|
system = "x86_64-linux";
|
|
|
|
pkgs = nixpkgs.legacyPackages.${system};
|
|
|
|
in {
|
|
|
|
nixosConfigurations."MaxNixosLaptop" = nixpkgs.lib.nixosSystem {
|
|
|
|
specialArgs = {inherit inputs;};
|
2024-03-08 23:28:19 +01:00
|
|
|
system = "x86_64-linux";
|
2024-03-01 16:19:41 +01:00
|
|
|
modules = [
|
2024-03-03 12:26:53 +01:00
|
|
|
./hosts/MaxNixosLaptop/configuration.nix
|
2024-03-11 14:33:12 +01:00
|
|
|
sops-nix.nixosModules.sops
|
2024-03-07 00:07:23 +01:00
|
|
|
home-manager.nixosModules.default
|
|
|
|
{
|
|
|
|
home-manager.useGlobalPkgs = true;
|
|
|
|
home-manager.useUserPackages = true;
|
|
|
|
}
|
2024-03-01 16:19:41 +01:00
|
|
|
];
|
2024-03-01 15:22:49 +01:00
|
|
|
};
|
2024-03-01 16:19:41 +01:00
|
|
|
};
|
2024-03-01 15:22:49 +01:00
|
|
|
}
|