refactor nix module list
This commit is contained in:
parent
d2c624fe9c
commit
caa0179f1d
1 changed files with 24 additions and 27 deletions
|
|
@ -1,31 +1,28 @@
|
||||||
{ lib, ... }:
|
{ lib, ... }:
|
||||||
{
|
{
|
||||||
flake.nixosModules = {
|
flake.nixosModules =
|
||||||
gitea.imports = [
|
(
|
||||||
./gitea.nix
|
(builtins.readDir ./.)
|
||||||
];
|
|> lib.filterAttrs (path: type: type == "regular" && (lib.hasSuffix ".nix" path))
|
||||||
|
|> lib.mapAttrs' (
|
||||||
|
path: _: {
|
||||||
|
name = lib.removeSuffix ".nix" path;
|
||||||
|
value = {
|
||||||
|
imports = [ ./${path} ];
|
||||||
|
};
|
||||||
|
}
|
||||||
|
)
|
||||||
|
)
|
||||||
|
// {
|
||||||
|
server.imports = [
|
||||||
|
./motd.nix
|
||||||
|
];
|
||||||
|
|
||||||
desktop.imports = [
|
common.imports = [
|
||||||
./desktop.nix
|
{
|
||||||
];
|
users.mutableUsers = lib.mkDefault false;
|
||||||
|
services.userborn.enable = lib.mkDefault true;
|
||||||
dev.imports = [ ./dev.nix ];
|
}
|
||||||
nix-defaults.imports = [ ./nix-defaults.nix ];
|
];
|
||||||
tailscale.imports = [ ./tailscale.nix ];
|
};
|
||||||
user-rpqt.imports = [ ./user-rpqt.nix ];
|
|
||||||
hardened-ssh-server.imports = [ ./hardened-ssh-server.nix ];
|
|
||||||
nextcloud.imports = [ ./nextcloud.nix ];
|
|
||||||
radicle.imports = [ ./radicle.nix ];
|
|
||||||
|
|
||||||
server.imports = [
|
|
||||||
./motd.nix
|
|
||||||
];
|
|
||||||
|
|
||||||
common.imports = [
|
|
||||||
{
|
|
||||||
users.mutableUsers = lib.mkDefault false;
|
|
||||||
services.userborn.enable = lib.mkDefault true;
|
|
||||||
}
|
|
||||||
];
|
|
||||||
};
|
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue