mirror of
https://github.com/Gerg-L/nixos.git
synced 2025-12-10 00:43:56 -05:00
moved install iso from a package to a host
made funnier functions gave more modules disable options updated lint command
This commit is contained in:
parent
ccbc3cc2af
commit
c4e6bcb664
9 changed files with 132 additions and 120 deletions
|
|
@ -1,72 +1,78 @@
|
|||
{self, ...}: {
|
||||
lib,
|
||||
pkgs,
|
||||
config,
|
||||
...
|
||||
}: {
|
||||
environment.etc = {
|
||||
"issue" = {
|
||||
text = "[?12l[?25h";
|
||||
mode = "0444";
|
||||
};
|
||||
};
|
||||
boot = {
|
||||
blacklistedKernelModules = ["pcspkr"];
|
||||
kernelParams = [
|
||||
"acpi_call"
|
||||
"pti=auto"
|
||||
"randomize_kstack_offset=on"
|
||||
"vsyscall=none"
|
||||
"slab_nomerge"
|
||||
"module.sig_enforce=1"
|
||||
"lockdown=confidentiality"
|
||||
"page_poison=1"
|
||||
"page_alloc.shuffle=1"
|
||||
"sysrq_always_enabled=0"
|
||||
"idle=nomwait"
|
||||
"rootflags=noatime"
|
||||
"iommu=pt"
|
||||
"usbcore.autosuspend=-1"
|
||||
"noresume"
|
||||
"acpi_backlight=native"
|
||||
"logo.nologo"
|
||||
"fbcon=nodefer"
|
||||
"bgrt_disable"
|
||||
"quiet"
|
||||
"systemd.show_status=false"
|
||||
"rd.udev.log_level=3"
|
||||
"vt.global_cursor_default=0"
|
||||
];
|
||||
consoleLogLevel = 3;
|
||||
initrd.verbose = false;
|
||||
plymouth = {
|
||||
enable = lib.mkDefault true;
|
||||
theme = "breeze";
|
||||
logo = "${self.packages.${pkgs.system}.images}/logo.png";
|
||||
};
|
||||
loader = {
|
||||
grub = {
|
||||
configurationLimit = 10;
|
||||
extraConfig = ''
|
||||
GRUB_TIMEOUT_STYLE=hidden
|
||||
options.local.bootConfig.disable = lib.mkEnableOption "";
|
||||
config =
|
||||
lib.mkIf (!config.local.bootConfig.disable)
|
||||
{
|
||||
environment.etc = {
|
||||
"issue" = {
|
||||
text = "[?12l[?25h";
|
||||
mode = "0444";
|
||||
};
|
||||
};
|
||||
boot = {
|
||||
blacklistedKernelModules = ["pcspkr"];
|
||||
kernelParams = [
|
||||
"acpi_call"
|
||||
"pti=auto"
|
||||
"randomize_kstack_offset=on"
|
||||
"vsyscall=none"
|
||||
"slab_nomerge"
|
||||
"module.sig_enforce=1"
|
||||
"lockdown=confidentiality"
|
||||
"page_poison=1"
|
||||
"page_alloc.shuffle=1"
|
||||
"sysrq_always_enabled=0"
|
||||
"idle=nomwait"
|
||||
"rootflags=noatime"
|
||||
"iommu=pt"
|
||||
"usbcore.autosuspend=-1"
|
||||
"noresume"
|
||||
"acpi_backlight=native"
|
||||
"logo.nologo"
|
||||
"fbcon=nodefer"
|
||||
"bgrt_disable"
|
||||
"quiet"
|
||||
"systemd.show_status=false"
|
||||
"rd.udev.log_level=3"
|
||||
"vt.global_cursor_default=0"
|
||||
];
|
||||
consoleLogLevel = 3;
|
||||
initrd.verbose = false;
|
||||
plymouth = {
|
||||
enable = lib.mkDefault true;
|
||||
theme = "breeze";
|
||||
logo = "${self.packages.${pkgs.system}.images}/logo.png";
|
||||
};
|
||||
loader = {
|
||||
grub = {
|
||||
configurationLimit = 10;
|
||||
extraConfig = ''
|
||||
GRUB_TIMEOUT_STYLE=hidden
|
||||
'';
|
||||
};
|
||||
systemd-boot = {
|
||||
configurationLimit = 10;
|
||||
enable = lib.mkDefault true;
|
||||
consoleMode = "max";
|
||||
editor = false;
|
||||
};
|
||||
efi.canTouchEfiVariables = lib.mkDefault true;
|
||||
timeout = 0;
|
||||
};
|
||||
};
|
||||
systemd.services.efibootmgr = {
|
||||
serviceConfig.Type = "oneshot";
|
||||
path = [pkgs.efibootmgr];
|
||||
wantedBy = ["default.target"];
|
||||
script = ''
|
||||
efibootmgr -t 0
|
||||
'';
|
||||
};
|
||||
systemd-boot = {
|
||||
configurationLimit = 10;
|
||||
enable = lib.mkDefault true;
|
||||
consoleMode = "max";
|
||||
editor = false;
|
||||
};
|
||||
efi.canTouchEfiVariables = lib.mkDefault true;
|
||||
timeout = 0;
|
||||
};
|
||||
};
|
||||
systemd.services.efibootmgr = {
|
||||
serviceConfig.Type = "oneshot";
|
||||
path = [pkgs.efibootmgr];
|
||||
wantedBy = ["default.target"];
|
||||
script = ''
|
||||
efibootmgr -t 0
|
||||
'';
|
||||
};
|
||||
_file = ./misc.nix;
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue