refactor nix module list
This commit is contained in:
parent
d2c624fe9c
commit
caa0179f1d
1 changed files with 24 additions and 27 deletions
|
|
@ -1,22 +1,19 @@
|
|||
{ lib, ... }:
|
||||
{
|
||||
flake.nixosModules = {
|
||||
gitea.imports = [
|
||||
./gitea.nix
|
||||
];
|
||||
|
||||
desktop.imports = [
|
||||
./desktop.nix
|
||||
];
|
||||
|
||||
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 ];
|
||||
|
||||
flake.nixosModules =
|
||||
(
|
||||
(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
|
||||
];
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue