refactor nix module list
This commit is contained in:
@@ -1,22 +1,19 @@
|
|||||||
{ lib, ... }:
|
{ lib, ... }:
|
||||||
{
|
{
|
||||||
flake.nixosModules = {
|
flake.nixosModules =
|
||||||
gitea.imports = [
|
(
|
||||||
./gitea.nix
|
(builtins.readDir ./.)
|
||||||
];
|
|> lib.filterAttrs (path: type: type == "regular" && (lib.hasSuffix ".nix" path))
|
||||||
|
|> lib.mapAttrs' (
|
||||||
desktop.imports = [
|
path: _: {
|
||||||
./desktop.nix
|
name = lib.removeSuffix ".nix" path;
|
||||||
];
|
value = {
|
||||||
|
imports = [ ./${path} ];
|
||||||
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 = [
|
server.imports = [
|
||||||
./motd.nix
|
./motd.nix
|
||||||
];
|
];
|
||||||
|
|||||||
Reference in New Issue
Block a user