nix-configs/systems/orangepihole/hardware-configuration.nix

34 lines
924 B
Nix
Raw Normal View History

2024-04-05 22:04:41 -04:00
{ config, lib, pkgs, modulesPath, ... }:
{
imports =
[ (modulesPath + "/installer/scan/not-detected.nix")
];
2024-05-11 11:44:00 -04:00
fileSystems."/" = {
device = "none";
fstype = "tmpfs";
options = [ "defaults" "mode=755" ];
};
fileSystems."/persist" =
2024-05-05 16:17:37 -04:00
{ device = "/dev/disk/by-uuid/6df53c4f-42b6-478b-8be4-f7887ad18b5b";
fsType = "btrfs";
2024-05-06 22:14:44 -04:00
options = [ "compress=lzo" "autodefrag" "defaults" "subvol=@nixos/root" ];
2024-05-05 16:17:37 -04:00
};
fileSystems."/boot" =
{ device = "/dev/disk/by-uuid/a4d76da9-b8eb-4615-9d64-a36e1383da80";
2024-04-05 22:04:41 -04:00
fsType = "ext4";
2024-05-05 16:17:37 -04:00
options = [ "defaults" ];
};
fileSystems."/nix" =
{ device = "/dev/disk/by-uuid/6df53c4f-42b6-478b-8be4-f7887ad18b5b";
fsType = "btrfs";
2024-05-06 22:14:44 -04:00
options = [ "compress=lzo" "autodefrag" "defaults" "subvol=@nixos/nix" ];
2024-04-05 22:04:41 -04:00
};
networking.useDHCP = lib.mkDefault true;
nixpkgs.hostPlatform = lib.mkDefault "aarch64-linux";
}