Commit d260830df87b

Vincent Demeester <vincent@sbr.pm>
2022-08-19 14:56:12
systems/modules: fix core modules
Signed-off-by: Vincent Demeester <vincent@sbr.pm>
1 parent 1bbf9aa
Changed files (3)
systems
systems/modules/core/boot.nix
@@ -1,4 +1,4 @@
-{ config, pkgs }:
+{ config, lib, pkgs, ... }:
 
 let
   inherit (lib) mkOption types;
@@ -14,6 +14,6 @@ in
     };
   };
   config = {
-    boot.load.systemd-boot.enable = cfg.systemd-boot;
+    boot.loader.systemd-boot.enable = cfg.systemd-boot;
   };
 }
systems/modules/core/default.nix
@@ -1,6 +1,6 @@
 {
   imports = [
-    #./boot.nix
+    ./boot.nix
     ./config.nix
     ./nix.nix
     ./users.nix
systems/modules/desktop/base.nix
@@ -23,8 +23,8 @@ in
   };
   config = mkIf cfg.enable {
     # Enable netbootxyz if systemd-boot is enabled
-    loader.systemd-boot.netbootxyz.enable = core.boot.systemd-boot;
     boot = {
+      loader.systemd-boot.netbootxyz.enable = config.core.boot.systemd-boot;
       # /tmp to be tmpfs
       tmpOnTmpfs = true;
       # Enable Plymouth on desktops
@@ -35,9 +35,6 @@ in
       };
     };
 
-    # FIXME Fix tmpOnTmpfs
-    systemd.additionalUpstreamSystemUnits = [ "tmp.mount" ];
-
     # Configure some fonts
     fonts = {
       # enableFontDir = true;