diff --git a/devices/steamdeck/default.nix b/devices/steamdeck/default.nix index 7f865038..89fa2e4e 100644 --- a/devices/steamdeck/default.nix +++ b/devices/steamdeck/default.nix @@ -33,6 +33,7 @@ inputs: kernel.variant = "steamos"; networking.hostname = "steamdeck"; gui.enable = true; + initrd.unl0kr = {}; }; hardware = { cpus = [ "amd" ]; gpu.type = "amd"; steamdeck = {}; }; packages.packageSet = "desktop-extra"; diff --git a/modules/system/initrd.nix b/modules/system/initrd.nix index 346d8564..02d8e216 100644 --- a/modules/system/initrd.nix +++ b/modules/system/initrd.nix @@ -11,6 +11,7 @@ inputs: default = [ "/nix/persistent/etc/ssh/initrd_ssh_host_ed25519_key" ]; }; }; + unl0kr = mkOption { type = types.nullOr (types.submodule {}); default = null; }; }; config = let inherit (inputs.config.nixos.system) initrd; in inputs.lib.mkMerge [ @@ -36,5 +37,6 @@ inputs: }; } ) + (inputs.lib.mkIf (initrd.unl0kr != null) { boot.initrd.unl0kr.enable = true; }) ]; }