nixos-config/machines/chungus/hardware-configuration/default.nix

28 lines
581 B
Nix
Raw Normal View History

2024-08-29 03:26:04 +02:00
{
config,
factsGenerator,
clanLib,
...
}:
2024-03-02 21:19:12 +01:00
{
imports = [
./disko-config.nix
./hardware-configuration.nix
2024-08-17 19:01:35 +02:00
./graphics.nix
2024-03-02 21:19:12 +01:00
];
boot.loader.efi.canTouchEfiVariables = true;
2024-05-29 20:16:04 +02:00
boot.loader.systemd-boot.enable = true;
2024-03-02 21:19:12 +01:00
boot.tmp.useTmpfs = true; # make /tmp a tmpfs (performance!)
boot.supportedFilesystems = [ "zfs" ];
2024-06-19 13:19:55 +02:00
clan.core.facts.services.zfs = factsGenerator.zfs { };
networking.hostId = toString config.clan.core.facts.services.zfs.public."zfs.hostId".value;
2024-04-10 18:16:51 +02:00
services.zfs = {
autoSnapshot.enable = true;
autoScrub.enable = true;
};
2024-03-02 21:19:12 +01:00
}