Common : Use ls to import all common modules.
This commit is contained in:
parent
4de25671a2
commit
a191472955
32
flake.nix
32
flake.nix
|
@ -108,35 +108,13 @@
|
||||||
};
|
};
|
||||||
|
|
||||||
# Common modules used across all hosts.
|
# Common modules used across all hosts.
|
||||||
nixosModules.common.imports = [
|
nixosModules.common = let
|
||||||
./module/common/AutoUpdateSigned.nix
|
ls = path: map (f: "${path}/${f}") (builtins.filter (i: builtins.readFileType "${path}/${i}" == "regular") (builtins.attrNames (builtins.readDir path)));
|
||||||
./module/common/Bash.nix
|
in {
|
||||||
./module/common/Bootloader.nix
|
imports = (ls ./module/common) ++ [
|
||||||
./module/common/Crypto.nix
|
|
||||||
./module/common/Distrobox.nix
|
|
||||||
./module/common/Dotfiles.nix
|
|
||||||
./module/common/Filesystem.nix
|
|
||||||
./module/common/Firefox.nix
|
|
||||||
./module/common/Firewall.nix
|
|
||||||
./module/common/Font.nix
|
|
||||||
./module/common/Git.nix
|
|
||||||
./module/common/KbdInterception.nix
|
|
||||||
./module/common/Kernel.nix
|
|
||||||
./module/common/Ld.nix
|
|
||||||
./module/common/Locale.nix
|
|
||||||
./module/common/Network.nix
|
|
||||||
./module/common/Nix.nix
|
|
||||||
./module/common/Nvim.nix
|
|
||||||
./module/common/Package.nix
|
|
||||||
./module/common/Ssh.nix
|
|
||||||
./module/common/Sshd.nix
|
|
||||||
./module/common/Stylix.nix
|
|
||||||
./module/common/Swap.nix
|
|
||||||
./module/common/Tmux.nix
|
|
||||||
./module/common/Users.nix
|
|
||||||
./module/common/YtDlp.nix
|
|
||||||
./user/Root.nix
|
./user/Root.nix
|
||||||
];
|
];
|
||||||
|
};
|
||||||
|
|
||||||
# Function to create a host.
|
# Function to create a host.
|
||||||
mkHost = { system, hostname, modules } @args: nixpkgs.lib.nixosSystem {
|
mkHost = { system, hostname, modules } @args: nixpkgs.lib.nixosSystem {
|
||||||
|
|
Loading…
Reference in a new issue