diff --git a/modules/defaults/base/default.nix b/modules/defaults/base/default.nix index d82aca1..e16888b 100644 --- a/modules/defaults/base/default.nix +++ b/modules/defaults/base/default.nix @@ -1,7 +1,8 @@ -# This is seperate so we have 1:1 what we have in ansible in here +# This is seperate so we have 1:1 what we have in ansible base role in here { imports = [ + ./modules.nix ./screen.nix ./sshd.nix ./sysctl.nix diff --git a/modules/defaults/base/modules.nix b/modules/defaults/base/modules.nix new file mode 100644 index 0000000..11b0ba3 --- /dev/null +++ b/modules/defaults/base/modules.nix @@ -0,0 +1,34 @@ +{ config, pkgs, lib, ... }: + +with lib; + +let + net = [ + "dccp" + "sctp" + "rds" + "tipc" + ]; + fs = [ + "cramfs" + "freevxfs" + "hfs" + "hfsplus" + "jffs2" + ]; + misc = [ + "bluetooth" + "firewire-core" + "n_hdlc" + "net-pf-31" + "soundcore" + "thunderbolt" + "usb-midi" + ]; +in +{ + environment.etc."modprobe.d/disablemod.conf".text = concatStringsSep "\n" + (map (module: "install ${module} ${pkgs.coreutils}/bin/true") + (net ++ fs ++ misc) + ); +}