Files
hearth/nixos/system/hectic-lab/default.nix
T
yukkop 21a3b5c59f
runner nix smoke / nix label and flake smoke (push) Canceled after 0s
fixes
2026-10-12 18:28:11 +00:00

37 lines
938 B
Nix

{
flake,
self,
inputs,
system ? "x86_64-linux",
...
}: let
# Use folder name as name of this system
name = builtins.baseNameOf ./.;
in self.lib.nixpkgs-lib.nixosSystem {
pkgs = import inputs.nixpkgs {
inherit system;
overlays = [
self.overlays.default
(final: prev: {
python311 = prev.python311.overrideAttrs (old: {
passthru = old.passthru // {
doc = old.passthru.doc.overrideAttrs (oldDoc: {
patches = (oldDoc.patches or [ ]) ++ [
./python-docutils-0.22.patch
./python-sphinx9-glossary.patch
];
});
};
});
})
];
config.allowUnfreePredicate = pkg:
builtins.elem (inputs.nixpkgs.lib.getName pkg) [ "steamcmd" "steam-unwrapped" "p4d" "p4" ];
};
modules = [
{ networking.hostName = name; }
(import ./${name}.nix { inherit flake self inputs; })
];
}