nix-config/nixos/hosts/trantor/default.nix

63 lines
1.4 KiB
Nix
Raw Normal View History

2023-08-12 17:33:27 +02:00
{ config, pkgs, ... }:
2022-01-18 09:32:55 +01:00
2023-08-12 17:33:27 +02:00
{
imports = [
2023-08-12 15:41:11 +02:00
./hardware-configuration.nix
2023-08-12 17:33:27 +02:00
./file-systems.nix
];
2022-01-18 09:32:55 +01:00
home-manager.users.rilla.imports = [
../../../home/hosts/trantor.nix
];
2022-01-25 12:27:52 +01:00
networking.networkmanager.wifi.macAddress = "80:FA:5B:41:12:0F";
2022-01-18 09:32:55 +01:00
nixpkgs.config.allowUnfree = true;
2022-01-25 12:27:52 +01:00
programs.steam.enable = true;
2022-01-18 09:32:55 +01:00
2022-11-06 13:31:43 +01:00
# todo: target and/or archive
2023-02-17 12:32:15 +01:00
services.btrbk = {
sshAccess = [{
roles = [ "info" "source" "target" "delete" "snapshot" "send" "receive" ];
key =
"ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAAIAJy2lSOeG4iCUlk+W0TK9DnJyHe/0XUU0PD0kokbWKF btrbk";
}];
instances.btrbk = {
onCalendar = "*:0/30"; # every 30 minutes
settings = {
snapshot_preserve = "2d";
snapshot_preserve_min = "latest";
snapshot_create = "onchange";
volume."/mnt/btr_user" = {
snapshot_dir = "btrbk_snapshots";
subvolume = {
data = { };
persist = { };
};
2022-11-06 13:31:43 +01:00
};
};
};
};
2022-01-18 09:32:55 +01:00
networking = {
hostName = "trantor";
interfaces = {
enp3s0f1.useDHCP = true;
wlp4s0.useDHCP = true;
};
};
2022-01-25 12:27:52 +01:00
services.xserver = { videoDrivers = [ "nvidia" ]; };
hardware.nvidia = {
nvidiaPersistenced = true;
modesetting.enable = true;
prime = {
sync.enable = true;
nvidiaBusId = "PCI:1:0:0";
intelBusId = "PCI:0:2:0";
};
};
2023-08-04 17:45:26 +02:00
system.stateVersion = "23.05";
2022-01-18 09:32:55 +01:00
}