mirror of
https://github.com/CHN-beta/nixos.git
synced 2024-10-23 05:39:05 +08:00
system.initrd: add unl0kr support
This commit is contained in:
parent
570befc1f5
commit
4bde656017
@ -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";
|
||||
|
@ -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; })
|
||||
];
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user