new and impruved

This commit is contained in:
zastian@mrthoddata.com
2025-05-07 15:45:08 +01:00
commit bdf553079b
197 changed files with 5824 additions and 0 deletions

48
system/boot.nix Executable file
View File

@@ -0,0 +1,48 @@
{
config,
lib,
pkgs,
systemName,
...
}:
{
# Use the systemd-boot EFI boot loader.
boot = {
loader = {
systemd-boot = {
enable = true;
};
efi.canTouchEfiVariables = true;
};
initrd.kernelModules = lib.mkMerge [
(lib.mkIf (systemName == "laptop") [
"kvm"
])
(lib.mkIf (systemName == "pc") [
"amdgpu"
"kvm"
])
];
kernelPackages = pkgs.linuxPackages_latest;
kernelParams = lib.mkMerge [
(lib.mkIf (systemName == "laptop") [
"ipv6e=1"
"i915.force_probe=46a6"
])
(lib.mkIf (systemName == "pc") [
"video=2560x1440x32"
"ipv6e=1"
])
];
plymouth = {
enable = true;
themePackages = [
pkgs.plymouth-matrix-theme
];
theme = "matrix";
};
};
}