Merge pull request 'Flake: nixos-facter-module with flake: false' (#1986) from hsjobeki/clan-core:hsjobeki-main into main

This commit is contained in:
clan-bot
2024-09-02 12:36:35 +00:00
8 changed files with 107 additions and 29 deletions

View File

@@ -6,6 +6,7 @@
./flash/flake-module.nix
./impure/flake-module.nix
./installation/flake-module.nix
./nixos-documentation/flake-module.nix
];
perSystem =
{

View File

@@ -0,0 +1,26 @@
{ self, ... }:
let
documentationModule = {
# This is how some downstream users currently generate documentation
# If this breaks notify them via matrix since we spent ~5 hrs for bughunting last time.
documentation.nixos.enable = true;
documentation.nixos.extraModules = [
self.nixosModules.clanCore
# This is the only option that is not part of the
# module because it is usually set by flake-parts
{ clan.core.clanDir = ./.; }
];
};
in
{
clan = {
machines.test-documentation = {
# Dummy file system
fileSystems."/".device = "/dev/null";
boot.loader.grub.device = "/dev/null";
imports = [
documentationModule
];
};
};
}