s0melapt0p-nix -> isla: rename
Signed-off-by: s0me1newithhand7s <git+me@hand7s.org>
This commit is contained in:
parent
aae7900229
commit
c1445349f0
74 changed files with 107 additions and 101 deletions
42
isla/boot/initrd.nix
Normal file
42
isla/boot/initrd.nix
Normal file
|
|
@ -0,0 +1,42 @@
|
|||
{lib, ...}: {
|
||||
boot = {
|
||||
initrd = {
|
||||
availableKernelModules = [
|
||||
"ehci_pci"
|
||||
"ahci"
|
||||
"usbhid"
|
||||
"usb_storage"
|
||||
"sd_mod"
|
||||
"sdhci_pci"
|
||||
"btrfs"
|
||||
"battery"
|
||||
"thinkpad_acpi"
|
||||
"cryptd"
|
||||
];
|
||||
|
||||
supportedFilesystems = {
|
||||
vfat = true;
|
||||
btrfs = true;
|
||||
zfs = lib.mkForce false;
|
||||
};
|
||||
|
||||
kernelModules = [
|
||||
"i915"
|
||||
];
|
||||
|
||||
luks = {
|
||||
devices = {
|
||||
cryptroot = {
|
||||
device = "/dev/disk/by-id/ata-ST92503010AS_5YH0CJFL-part2";
|
||||
};
|
||||
};
|
||||
};
|
||||
|
||||
systemd = {
|
||||
enable = true;
|
||||
};
|
||||
|
||||
verbose = false;
|
||||
};
|
||||
};
|
||||
}
|
||||
85
isla/boot/kernel.nix
Normal file
85
isla/boot/kernel.nix
Normal file
|
|
@ -0,0 +1,85 @@
|
|||
{
|
||||
pkgs,
|
||||
lib,
|
||||
...
|
||||
}: {
|
||||
boot = {
|
||||
kernel = {
|
||||
sysctl = {
|
||||
"vm.swappiness" = 100;
|
||||
"vm.dirty_background_bytes" = 67108864;
|
||||
"vm.dirty_bytes" = 268435456;
|
||||
"vm.dirty_expire_centisecs" = 1500;
|
||||
"vm.dirty_writeback_centisecs" = 100;
|
||||
"vm.vfs_cache_pressure" = 50;
|
||||
"vm.max_map_count" = 1048576;
|
||||
};
|
||||
};
|
||||
|
||||
kernelPackages = pkgs.linuxPackages_zen;
|
||||
extraModprobeConfig = ''
|
||||
options thinkpad_acpi fan_control=1
|
||||
'';
|
||||
|
||||
kernelParams = [
|
||||
"i915.enable_rc6=7"
|
||||
"udev.log_priority=3"
|
||||
"quiet"
|
||||
"splash"
|
||||
"boot.shell_on_fail"
|
||||
"loglevel=3"
|
||||
"rd.systemd.show_status=false"
|
||||
"rd.udev.log_level=3"
|
||||
|
||||
"debugfs=off"
|
||||
"page_alloc.shuffle=1"
|
||||
"page_poison=1"
|
||||
"slab_nomerge"
|
||||
|
||||
"kernel.watchdog=0"
|
||||
"oops=panic"
|
||||
];
|
||||
|
||||
kernelModules = [
|
||||
"tp_smapi"
|
||||
];
|
||||
|
||||
blacklistedKernelModules = [
|
||||
"k10temp"
|
||||
"ax25"
|
||||
"netrom"
|
||||
"rose"
|
||||
"adfs"
|
||||
"affs"
|
||||
"bfs"
|
||||
"befs"
|
||||
"cramfs"
|
||||
"efs"
|
||||
"erofs"
|
||||
"exofs"
|
||||
"freevxfs"
|
||||
"f2fs"
|
||||
"hfs"
|
||||
"hpfs"
|
||||
"jfs"
|
||||
"minix"
|
||||
"nilfs2"
|
||||
"ntfs"
|
||||
"omfs"
|
||||
"qnx4"
|
||||
"qnx6"
|
||||
"sysv"
|
||||
"ufs"
|
||||
"sp5100-tco"
|
||||
"iTCO_wdt"
|
||||
];
|
||||
|
||||
supportedFilesystems = {
|
||||
vfat = true;
|
||||
btrfs = true;
|
||||
zfs = lib.mkForce false;
|
||||
};
|
||||
|
||||
# consoleLogLevel = 0;
|
||||
};
|
||||
}
|
||||
13
isla/boot/lanzaboote.nix
Normal file
13
isla/boot/lanzaboote.nix
Normal file
|
|
@ -0,0 +1,13 @@
|
|||
{...}: {
|
||||
boot = {
|
||||
lanzaboote = {
|
||||
enable = true;
|
||||
configurationLimit = 7;
|
||||
pkiBundle = "/var/lib/sbctl";
|
||||
settings = {
|
||||
timeout = 2;
|
||||
sortKey = "lanza";
|
||||
};
|
||||
};
|
||||
};
|
||||
}
|
||||
19
isla/boot/loader/systemd-boot.nix
Normal file
19
isla/boot/loader/systemd-boot.nix
Normal file
|
|
@ -0,0 +1,19 @@
|
|||
{lib, ...}: {
|
||||
boot = {
|
||||
loader = {
|
||||
systemd-boot = {
|
||||
enable = lib.mkDefault false;
|
||||
sortKey = "nixos";
|
||||
memtest86 = {
|
||||
enable = true;
|
||||
sortKey = "o_memtest86";
|
||||
};
|
||||
|
||||
netbootxyz = {
|
||||
enable = false;
|
||||
sortKey = "o_netbootxyz";
|
||||
};
|
||||
};
|
||||
};
|
||||
};
|
||||
}
|
||||
10
isla/boot/plymouth.nix
Normal file
10
isla/boot/plymouth.nix
Normal file
|
|
@ -0,0 +1,10 @@
|
|||
{pkgs, ...}: {
|
||||
boot = {
|
||||
plymouth = {
|
||||
enable = true;
|
||||
themePackages = with pkgs; [
|
||||
nixos-bgrt-plymouth
|
||||
];
|
||||
};
|
||||
};
|
||||
}
|
||||
8
isla/boot/tmp.nix
Normal file
8
isla/boot/tmp.nix
Normal file
|
|
@ -0,0 +1,8 @@
|
|||
{...}: {
|
||||
boot = {
|
||||
tmp = {
|
||||
useTmpfs = true;
|
||||
cleanOnBoot = true;
|
||||
};
|
||||
};
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue