This commit is contained in:
hand7s 2025-04-21 18:32:39 +03:00
commit b6cdc78668
210 changed files with 9929 additions and 0 deletions

View file

@ -0,0 +1,43 @@
{
lib,
...
}: {
boot = {
initrd = {
availableKernelModules = [
"nvme"
"xhci_pci"
"ahci"
"usbhid"
"usb_storage"
"sd_mod"
"btrfs"
"cryptd"
];
supportedFilesystems = {
vfat = true;
btrfs = true;
zfs = lib.mkForce true;
};
kernelModules = [
"amdgpu"
];
luks = {
devices = {
cryptroot = {
device = "nvme-KINGSTON_SKC3000S_1024G_AA000000000000000013-part2";
};
};
};
systemd = {
enable = true;
};
verbose = false;
};
};
}

View file

@ -0,0 +1,86 @@
{
config,
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_cachyos;
extraModulePackages = [
config.boot.kernelPackages.zenpower
];
kernelModules = [
"amdgpu"
"zenpower"
];
kernelParams = [
"amd_pstate=guided"
"udev.log_priority=3"
"quiet"
"splash"
"boot.shell_on_fail"
"loglevel=3"
"rd.systemd.show_status=false"
"rd.udev.log_level=3"
"page_alloc.shuffle=1"
"page_poison=1"
"slab_nomerge"
"kernel.watchdog=0"
"oops=panic"
];
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 true;
};
consoleLogLevel = 0;
};
}

View file

@ -0,0 +1,15 @@
{
...
}: {
boot = {
lanzaboote = {
enable = true;
configurationLimit = 7;
pkiBundle = "/var/lib/sbctl";
settings = {
timeout = 2;
sortKey = "lanza";
};
};
};
}

View file

@ -0,0 +1,22 @@
{
lib,
...
}: {
boot = {
loader = {
systemd-boot = {
enable = lib.mkDefault false;
sortKey = "nixos";
memtest86 = {
enable = true;
sortKey = "o_memtest86";
};
netbootxyz = {
enable = false;
sortKey = "o_netbootxyz";
};
};
};
};
}

View file

@ -0,0 +1,13 @@
{
pkgs,
...
}: {
boot = {
plymouth = {
enable = true;
themePackages = with pkgs; [
nixos-bgrt-plymouth
];
};
};
}

10
s0mePC-nix/boot/tmp.nix Normal file
View file

@ -0,0 +1,10 @@
{
...
}: {
boot = {
tmp = {
useTmpfs = true;
cleanOnBoot = true;
};
};
}

12
s0mePC-nix/boot/zfs.nix Normal file
View file

@ -0,0 +1,12 @@
{
pkgs,
...
}: {
boot = {
zfs = {
package = pkgs.zfs_cachyos;
allowHibernation = false;
removeLinuxDRM = false;
};
};
}