2023-06-18 22:52:24 +02:00
|
|
|
{
|
2025-01-08 02:06:46 +01:00
|
|
|
description = "My NixOS configuration files.";
|
|
|
|
|
2024-04-04 01:41:19 +02:00
|
|
|
inputs = {
|
2024-12-28 18:17:37 +01:00
|
|
|
nixpkgs.url = "github:nixos/nixpkgs/nixos-24.11";
|
2025-01-08 02:06:46 +01:00
|
|
|
nixpkgs-unstable.url = "github:nixos/nixpkgs/nixos-unstable";
|
2024-05-24 21:33:00 +02:00
|
|
|
|
2025-01-08 02:06:46 +01:00
|
|
|
flake-parts.url = "github:hercules-ci/flake-parts";
|
2024-04-05 14:36:20 +02:00
|
|
|
|
|
|
|
home-manager = {
|
2025-01-08 02:06:46 +01:00
|
|
|
url = "github:nix-community/home-manager/release-24.11";
|
2024-05-24 21:33:00 +02:00
|
|
|
inputs.nixpkgs.follows = "nixpkgs";
|
2024-04-05 14:36:20 +02:00
|
|
|
};
|
2024-08-28 18:21:04 +02:00
|
|
|
|
2025-01-08 02:06:46 +01:00
|
|
|
impermanence.url = "github:nix-community/impermanence";
|
2024-11-05 13:50:01 +01:00
|
|
|
|
2025-01-08 02:06:46 +01:00
|
|
|
disko = {
|
|
|
|
url = "github:nix-community/disko/latest";
|
2024-11-05 13:50:01 +01:00
|
|
|
inputs.nixpkgs.follows = "nixpkgs";
|
|
|
|
};
|
2025-01-11 02:00:28 +01:00
|
|
|
|
|
|
|
sops-nix = {
|
|
|
|
url = "github:Mic92/sops-nix";
|
|
|
|
inputs.nixpkgs.follows = "nixpkgs";
|
|
|
|
};
|
2024-04-04 01:41:19 +02:00
|
|
|
};
|
2023-06-18 22:52:24 +02:00
|
|
|
|
2024-08-28 18:21:04 +02:00
|
|
|
outputs = {
|
|
|
|
nixpkgs,
|
2025-01-08 02:06:46 +01:00
|
|
|
nixpkgs-unstable,
|
|
|
|
flake-parts,
|
2024-08-28 18:21:04 +02:00
|
|
|
impermanence,
|
|
|
|
home-manager,
|
2025-01-08 02:06:46 +01:00
|
|
|
disko,
|
2025-01-11 02:00:28 +01:00
|
|
|
sops-nix,
|
2024-08-28 18:21:04 +02:00
|
|
|
...
|
|
|
|
} @ inputs: let
|
|
|
|
lib = nixpkgs.lib.extend (final: prev:
|
|
|
|
import ./lib { lib = final; }
|
|
|
|
);
|
|
|
|
in {
|
|
|
|
nixosConfigurations = lib.mkHosts {
|
|
|
|
nixpkgs = nixpkgs;
|
|
|
|
inputs = inputs;
|
2025-01-11 02:00:28 +01:00
|
|
|
user = "caem";
|
2025-01-08 02:06:46 +01:00
|
|
|
modules = [
|
2025-01-19 20:26:42 +01:00
|
|
|
./secrets
|
2025-01-18 20:34:22 +01:00
|
|
|
impermanence.nixosModules.impermanence
|
|
|
|
disko.nixosModules.disko
|
|
|
|
sops-nix.nixosModules.sops
|
2025-01-11 02:00:28 +01:00
|
|
|
home-manager.nixosModules.home-manager {
|
|
|
|
home-manager = {
|
|
|
|
useGlobalPkgs = true;
|
|
|
|
useUserPackages = true;
|
|
|
|
extraSpecialArgs = {
|
|
|
|
inherit inputs;
|
|
|
|
};
|
|
|
|
};
|
|
|
|
}
|
2025-01-08 02:06:46 +01:00
|
|
|
];
|
2023-06-18 22:52:24 +02:00
|
|
|
};
|
2024-08-28 18:21:04 +02:00
|
|
|
};
|
2023-06-18 22:52:24 +02:00
|
|
|
}
|
2024-05-24 21:33:00 +02:00
|
|
|
|