nixos-config/machines/p330/hardware-configuration.nix

50 lines
1.1 KiB
Nix
Raw Normal View History

2022-07-07 13:33:38 +00:00
{ config, lib, pkgs, modulesPath, ... }:
{
imports =
[
(modulesPath + "/installer/scan/not-detected.nix")
];
2024-01-12 22:34:28 +00:00
boot.initrd.availableKernelModules = [ "sd_mod" "sr_mod" ];
2022-07-07 13:33:38 +00:00
boot.initrd.kernelModules = [ "dm-snapshot" ];
boot.initrd.luks.devices = {
crypted = {
device = "/dev/disk/by-uuid/c24c9fba-fa0b-41a2-87c1-75edc7b3f64d";
preLVM = true;
};
};
fileSystems."/" =
{
device = "/dev/disk/by-uuid/9c6e1dc3-a442-431d-8cf4-6eaf1e45c296";
fsType = "ext4";
};
fileSystems."/boot" =
{
device = "/dev/disk/by-uuid/3B69-8F97";
fsType = "vfat";
};
fileSystems."/home" =
{
device = "/dev/disk/by-uuid/6a44edab-e602-40e9-85c4-cb8517862992";
fsType = "ext4";
};
2023-06-14 06:32:48 +00:00
fileSystems."/var/lib/docker" =
{
device = "/dev/disk/by-uuid/1f8dae67-1640-4688-ac86-b0e6f5095d6e";
fsType = "ext4";
};
2022-07-07 13:33:38 +00:00
swapDevices =
[{ device = "/dev/disk/by-uuid/b90199d6-05e8-4994-bf9d-7b07f10d583e"; }];
2023-03-08 09:50:08 +00:00
networking.useDHCP = lib.mkDefault true;
2024-01-15 07:12:22 +00:00
console.font = "ter-u32n";
2022-07-07 13:33:38 +00:00
}