summaryrefslogtreecommitdiffstats
path: root/systems/nomic
diff options
context:
space:
mode:
authortv <tv@krebsco.de>2023-09-11 18:24:28 +0200
committertv <tv@krebsco.de>2023-09-13 18:07:11 +0200
commit0c4f3acb281be6290c55a6e96bc29fab5b5c7a11 (patch)
treedadaec00477a095273475ac345b2066b4748c399 /systems/nomic
parentab1d0479e90f11806d4703ec6fffed3d5f782914 (diff)
stockholm -> hrm
Diffstat (limited to 'systems/nomic')
-rw-r--r--systems/nomic/config.nix60
1 files changed, 60 insertions, 0 deletions
diff --git a/systems/nomic/config.nix b/systems/nomic/config.nix
new file mode 100644
index 0000000..e8a5f9c
--- /dev/null
+++ b/systems/nomic/config.nix
@@ -0,0 +1,60 @@
+{ config, lib, pkgs, ... }: {
+ krebs.build.host = config.krebs.hosts.nomic;
+
+ imports = [
+ ../../configs/hw/x220.nix
+ ../../configs/exim-retiolum.nix
+ ../../configs/gitrepos.nix
+ ../../configs/mail-client.nix
+ ../../configs/nginx/public_html.nix
+ ../../configs/pulse.nix
+ ../../configs/retiolum.nix
+ ../../configs/xserver
+ ];
+
+ boot.initrd.luks.devices.luks1.device = "/dev/sda2";
+
+ # Don't use UEFI because current disk was partitioned/formatted for AO753.
+ # TODO remove following bool.loader section after repartitioning/reformatting
+ boot.loader = {
+ grub = {
+ device = "/dev/sda";
+ splashImage = null;
+ };
+ systemd-boot.enable = lib.mkForce false;
+ };
+
+ fileSystems."/" =
+ { device = "/dev/mapper/nomic1-root";
+ fsType = "btrfs";
+ };
+
+ fileSystems."/boot" =
+ { device = "/dev/sda1";
+ fsType = "ext4";
+ };
+
+ fileSystems."/home" =
+ { device = "/dev/mapper/nomic1-home";
+ fsType = "btrfs";
+ };
+
+ environment.systemPackages = with pkgs; [
+ (writeDashBin "play" ''
+ set -euf
+ mpv() { exec ${mpv}/bin/mpv "$@"; }
+ case $1 in
+ deepmix) mpv http://deepmix.ru/deepmix128.pls;;
+ groovesalad) mpv http://somafm.com/play/groovesalad;;
+ ntslive) mpv http://listen2.ntslive.co.uk/listen.pls;;
+ *)
+ echo "$0: bad argument: $*" >&2
+ exit 23
+ esac
+ '')
+ gnupg
+ tmux
+ ];
+
+ networking.wireless.enable = true;
+}