nix setup

This commit is contained in:
Robin Appelman 2026-02-08 20:10:05 +01:00
commit 28ba46ec1a
8 changed files with 301 additions and 1 deletions

30
flake.nix Normal file
View file

@ -0,0 +1,30 @@
{
inputs = {
nixpkgs.url = "nixpkgs/nixos-25.11";
flakelight = {
url = "github:nix-community/flakelight";
inputs.nixpkgs.follows = "nixpkgs";
};
mill-scale = {
url = "git+https://codeberg.org/icewind/mill-scale.git";
inputs.flakelight.follows = "flakelight";
};
};
outputs = {mill-scale, ...}:
mill-scale ./. {
nixosModules = {outputs, ...}: {
default = {
pkgs,
config,
lib,
...
}: {
imports = [./nix/module.nix];
config = lib.mkIf config.services.demostf-cleanup.enable {
nixpkgs.overlays = [outputs.overlays.default];
services.demostf-cleanup.package = lib.mkDefault pkgs.demostf-cleanup;
};
};
};
};
}