Add unl0kr for shire

This commit is contained in:
Marko Korhonen 2024-09-28 20:50:35 +03:00
parent 3ac81e8aef
commit e609f8c68a
Signed by: FunctionalHacker
GPG key ID: A7F78BCB859CD890
2 changed files with 15 additions and 5 deletions

View file

@ -21,18 +21,19 @@
configureNixSystem = hostname: nixpkgs.lib.nixosSystem {
system = "x86_64-linux";
modules = [
# Host specific configuration
./hosts/${hostname}/configuration.nix
# Common settings for all hosts
({ pkgs, ... }: import ./nixos_common.nix
{ inherit inputs; inherit pkgs; })
# Host specific configuration
./hosts/${hostname}/configuration.nix
# home-manager
home-manager.nixosModules.home-manager
({ ... }: import ./home-manager.nix { inherit inputs; })
];
};
in
{
nixosConfigurations = {

View file

@ -1,4 +1,4 @@
{ ... }:
{ config, ... }:
{
imports = [
@ -8,5 +8,14 @@
networking.hostName = "Shire";
# TODO
boot = {
kernelParams = config.boot.kernelParams ++ [
"intel_idle.max_cstate=1"
];
initrd.unl0kr.enable = true;
# Does not work with unl0kr now
# https://github.com/NixOS/nixpkgs/issues/291935
plymouth.enable = false;
};
}