2024-11-20 20:32:38 +01:00
|
|
|
{ nixos-hardware, ... }:
|
|
|
|
{
|
2024-11-15 21:58:10 +01:00
|
|
|
imports = [
|
|
|
|
nixos-hardware.nixosModules.raspberry-pi-5
|
|
|
|
];
|
|
|
|
|
|
|
|
boot = {
|
2024-11-20 20:32:38 +01:00
|
|
|
kernelParams = [
|
|
|
|
"8250.nr_uarts=11"
|
|
|
|
"console=ttyAMA10,9600"
|
|
|
|
"console=tty0"
|
|
|
|
];
|
|
|
|
supportedFilesystems = [ "btrfs" ];
|
2024-11-15 21:58:10 +01:00
|
|
|
initrd.systemd.enableTpm2 = false;
|
|
|
|
loader.systemd-boot.enable = true;
|
|
|
|
loader.efi.canTouchEfiVariables = false;
|
|
|
|
};
|
|
|
|
fileSystems = {
|
|
|
|
"/" = {
|
|
|
|
device = "none";
|
|
|
|
fsType = "tmpfs";
|
2024-11-20 20:32:38 +01:00
|
|
|
options = [
|
|
|
|
"defaults"
|
|
|
|
"size=2G"
|
|
|
|
"mode=755"
|
|
|
|
"noexec"
|
|
|
|
];
|
2024-11-15 21:58:10 +01:00
|
|
|
};
|
|
|
|
"/boot" = {
|
|
|
|
device = "/dev/disk/by-uuid/F8BB-8019";
|
|
|
|
fsType = "vfat";
|
|
|
|
};
|
|
|
|
"/nix" = {
|
|
|
|
device = "/dev/disk/by-uuid/7741fa2e-ce5d-4aef-bf3c-8e283e973409";
|
|
|
|
fsType = "btrfs";
|
2024-11-20 20:32:38 +01:00
|
|
|
options = [
|
|
|
|
"subvol=nix"
|
|
|
|
"compress=zstd"
|
|
|
|
"noatime"
|
|
|
|
];
|
2024-11-15 21:58:10 +01:00
|
|
|
neededForBoot = true;
|
|
|
|
};
|
|
|
|
"/persist" = {
|
|
|
|
device = "/dev/disk/by-uuid/7741fa2e-ce5d-4aef-bf3c-8e283e973409";
|
|
|
|
fsType = "btrfs";
|
2024-11-20 20:32:38 +01:00
|
|
|
options = [
|
|
|
|
"subvol=persist"
|
|
|
|
"compress=zstd"
|
|
|
|
"noexec"
|
|
|
|
];
|
2024-11-15 21:58:10 +01:00
|
|
|
neededForBoot = true;
|
|
|
|
};
|
|
|
|
"/snapshots" = {
|
|
|
|
device = "/dev/disk/by-uuid/7741fa2e-ce5d-4aef-bf3c-8e283e973409";
|
|
|
|
fsType = "btrfs";
|
2024-11-20 20:32:38 +01:00
|
|
|
options = [
|
|
|
|
"subvol=snapshots"
|
|
|
|
"compress=zstd"
|
|
|
|
"noexec"
|
|
|
|
];
|
2024-11-15 21:58:10 +01:00
|
|
|
neededForBoot = false;
|
|
|
|
};
|
|
|
|
"/mnt/WD" = {
|
|
|
|
device = "/dev/disk/by-uuid/EA2866C92866947B";
|
|
|
|
fsType = "ntfs";
|
2024-11-20 20:32:38 +01:00
|
|
|
options = [
|
|
|
|
"nofail"
|
|
|
|
"x-systemd.automount"
|
|
|
|
];
|
2024-11-15 21:58:10 +01:00
|
|
|
neededForBoot = false;
|
|
|
|
};
|
|
|
|
};
|
|
|
|
|
|
|
|
hardware = {
|
|
|
|
bluetooth = {
|
|
|
|
enable = true;
|
|
|
|
powerOnBoot = true;
|
|
|
|
};
|
|
|
|
};
|
|
|
|
|
|
|
|
powerManagement = {
|
|
|
|
enable = true;
|
|
|
|
cpuFreqGovernor = "powersave";
|
|
|
|
};
|
|
|
|
|
|
|
|
services = {
|
|
|
|
upower.enable = true;
|
|
|
|
};
|
|
|
|
|
|
|
|
time.timeZone = "Europe/Berlin";
|
|
|
|
}
|