1
Fork 0
nixos-system-config/flake.nix

68 lines
1.5 KiB
Nix
Raw Normal View History

2023-06-18 22:52:24 +02:00
{
2025-01-08 02:06:46 +01:00
description = "My NixOS configuration files.";
inputs = {
secrets.url = "git+ssh://git@git.caem.dev/caem/secrets";
2025-01-19 23:06:17 +01:00
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";
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";
inputs.nixpkgs.follows = "nixpkgs";
2024-04-05 14:36:20 +02:00
};
2025-01-08 02:06:46 +01:00
impermanence.url = "github:nix-community/impermanence";
2025-01-08 02:06:46 +01:00
disko = {
url = "github:nix-community/disko/latest";
inputs.nixpkgs.follows = "nixpkgs";
};
2025-01-11 02:00:28 +01:00
sops-nix = {
url = "github:Mic92/sops-nix";
inputs.nixpkgs.follows = "nixpkgs";
};
};
2023-06-18 22:52:24 +02:00
outputs = {
nixpkgs,
2025-01-08 02:06:46 +01:00
nixpkgs-unstable,
flake-parts,
impermanence,
home-manager,
2025-01-08 02:06:46 +01:00
disko,
2025-01-11 02:00:28 +01:00
sops-nix,
2025-01-19 23:06:17 +01:00
secrets,
...
} @ 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-23 15:46:27 +01:00
flakeRoot = ./.;
2025-01-08 02:06:46 +01:00
modules = [
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
};
};
2023-06-18 22:52:24 +02:00
}