From 736980ddd7b478290a1f99d4099414376c754b8f Mon Sep 17 00:00:00 2001 From: Don Harper Date: Thu, 4 Sep 2025 14:21:36 -0500 Subject: [PATCH] hosts | template for new hosts --- hosts/template/colmena.nix | 9 +++++++++ hosts/template/default.nix | 36 ++++++++++++++++++++++++++++++++++++ 2 files changed, 45 insertions(+) create mode 100644 hosts/template/colmena.nix create mode 100644 hosts/template/default.nix diff --git a/hosts/template/colmena.nix b/hosts/template/colmena.nix new file mode 100644 index 0000000..0a74e1c --- /dev/null +++ b/hosts/template/colmena.nix @@ -0,0 +1,9 @@ +{ inputs, outputs, lib, config, pkgs, ... }: { + imports = [ ./default.nix ]; + deployment = { + tags = [ "workstation" "intel" ]; + allowLocalDeployment = true; + targetUser = "don"; + privilegeEscalationCommand = [ "/run/wrappers/bin/doas" ]; + }; +} diff --git a/hosts/template/default.nix b/hosts/template/default.nix new file mode 100644 index 0000000..c4bef60 --- /dev/null +++ b/hosts/template/default.nix @@ -0,0 +1,36 @@ +{ + inputs, + outputs, + lib, + config, + pkgs, + ... +}: { + imports = [ + ./hardware-configuration.nix + # ../disko/mmcblk.nix + ../workstation + ]; + networking.hostName = "NAME"; + variables.address = "0.0.0.1"; + variables.swayScale = "1.0"; + + roles = { + citrix.enable = false; + zoom.enable = false; + gui.enable = true; + kmscon.enable = true; + kvm.enable = false; + games.enable = false; + auto-cpufreq.enable = true; + wine.enable = false; + tlp.enable = false; + gnome-calendar.enable = false; + }; + primary.enable = false; + wm = { + sway.enable = true; + kde.enable = false; + cosmic.enable = false; + }; +}