From 77d17636b1e0e46b1c7712fa543be20c51946add Mon Sep 17 00:00:00 2001 From: tv Date: Tue, 4 Jan 2022 21:31:21 +0100 Subject: tv bu: init --- tv/1systems/bu/config.nix | 40 ++++++++++++++++++++++++++++++++++++++++ tv/1systems/bu/disks.nix | 15 +++++++++++++++ 2 files changed, 55 insertions(+) create mode 100644 tv/1systems/bu/config.nix create mode 100644 tv/1systems/bu/disks.nix (limited to 'tv/1systems/bu') diff --git a/tv/1systems/bu/config.nix b/tv/1systems/bu/config.nix new file mode 100644 index 000000000..69c5848f5 --- /dev/null +++ b/tv/1systems/bu/config.nix @@ -0,0 +1,40 @@ +{ config, pkgs, ... }: let + lib = import ../../../lib; +in { + + imports = [ + ./disks.nix + + + + + + + ]; + + environment.homeBinInPath = true; + + krebs.build.host = config.krebs.hosts.bu; + + networking.hostId = lib.mkDefault "00000000"; + + networking.wireless.enable = true; + networking.useDHCP = false; + networking.interfaces.enp0s25.useDHCP = true; + networking.interfaces.wlp3s0.useDHCP = true; + networking.interfaces.wwp0s29u1u4i6.useDHCP = true; + networking.wireless.interfaces = [ + "wlp3s0" + ]; + + programs.gnupg.agent.enable = true; + programs.gnupg.agent.pinentryFlavor = "gtk2"; + + services.earlyoom.enable = true; + services.earlyoom.freeMemThreshold = 5; + systemd.services.earlyoom.environment.EARLYOOM_ARGS = toString [ + "--prefer '(^|/)chromium$'" + ]; + + system.stateVersion = "21.11"; +} diff --git a/tv/1systems/bu/disks.nix b/tv/1systems/bu/disks.nix new file mode 100644 index 000000000..e634209f4 --- /dev/null +++ b/tv/1systems/bu/disks.nix @@ -0,0 +1,15 @@ +{ + boot.initrd.luks.devices.buda2.device = "/dev/sda2"; + fileSystems."/" = { + device = "buda2/root"; + fsType = "zfs"; + }; + fileSystems."/home" = { + device = "buda2/home"; + fsType = "zfs"; + }; + fileSystems."/boot" = { + device = "/dev/sda1"; + fsType = "vfat"; + }; +} -- cgit v1.2.3 From c4ff9f0d26e7fce7d83d076dda5445801cca6676 Mon Sep 17 00:00:00 2001 From: tv Date: Wed, 5 Jan 2022 01:40:14 +0100 Subject: tv bu: setup backups --- tv/1systems/bu/disks.nix | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'tv/1systems/bu') diff --git a/tv/1systems/bu/disks.nix b/tv/1systems/bu/disks.nix index e634209f4..deabefa7b 100644 --- a/tv/1systems/bu/disks.nix +++ b/tv/1systems/bu/disks.nix @@ -4,6 +4,10 @@ device = "buda2/root"; fsType = "zfs"; }; + fileSystems."/bku" = { + device = "buda2/bku"; + fsType = "zfs"; + }; fileSystems."/home" = { device = "buda2/home"; fsType = "zfs"; -- cgit v1.2.3