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

46 lines
953 B
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 = {
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";
};
};
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,
...
} @ inputs: let
lib = nixpkgs.lib.extend (final: prev:
import ./lib { lib = final; }
);
in {
nixosConfigurations = lib.mkHosts {
nixpkgs = nixpkgs;
inputs = inputs;
2025-01-08 02:06:46 +01:00
modules = [
disko.nixosModules.disko
];
2023-06-18 22:52:24 +02:00
};
};
2023-06-18 22:52:24 +02:00
}