impermanence-talk/template/flake.nix

56 lines
1.2 KiB
Nix
Raw Normal View History

2024-04-07 17:34:18 +00:00
{
description = "Impermanence Example";
inputs = {
nixpkgs.url = "github:NixOS/nixpkgs/nixos-23.11";
nixpkgs-unstable.url = "github:NixOS/nixpkgs/nixos-unstable";
nixos-hardware.url = "github:NixOS/nixos-hardware/master";
disko = {
url = "github:nix-community/disko";
inputs.nixpkgs.follows = "nixpkgs";
};
impermanence = {
url = "github:nix-community/impermanence";
};
};
2024-04-07 18:19:32 +00:00
outputs = {self, ...} @ inputs: let
2024-04-07 17:34:18 +00:00
system = "x86_64-linux";
2024-04-07 18:19:32 +00:00
pkgs = inputs.nixpkgs.legacyPackages.${system};
2024-04-07 17:34:18 +00:00
in {
nixosConfigurations = {
2024-04-07 18:19:32 +00:00
minimal = inputs.nixpkgs.lib.nixosSystem {
2024-04-07 17:34:18 +00:00
inherit system;
2024-04-07 18:19:32 +00:00
2024-04-07 17:34:18 +00:00
modules = [
inputs.disko.nixosModules.default
2024-04-07 18:19:32 +00:00
{
imports = [
(import ./system/disko.nix {})
];
}
2024-04-07 17:34:18 +00:00
inputs.impermanence.nixosModules.impermanence
./system
2024-04-07 18:19:32 +00:00
{
system.stateVersion = "23.11";
}
2024-04-07 17:34:18 +00:00
];
};
2024-04-07 18:19:32 +00:00
};
2024-04-07 17:34:18 +00:00
2024-04-07 18:24:03 +00:00
formatter = pkgs.alejandra;
2024-04-07 18:19:32 +00:00
devShells.${system} = {
default = pkgs.mkShellNoCC {
packages = [
inputs.disko.packages.${system}.default
];
2024-04-07 17:34:18 +00:00
};
};
};
}