From 67adf5929167a527a172ec5c85ccd335fc54cc68 Mon Sep 17 00:00:00 2001
From: Tim Keller <tjkeller.xyz>
Date: Sat, 18 Jan 2025 18:45:57 -0600
Subject: add libreX60 config. remove alacritty. add options for font

---
 modules/home/theme.nix                   | 19 +++++++++++++++----
 modules/hosts/libreX60/configuration.nix | 14 ++++++++++++++
 modules/hosts/libreX60/home.nix          |  8 ++++++++
 modules/root/software/desktop.nix        |  3 +--
 4 files changed, 38 insertions(+), 6 deletions(-)
 create mode 100644 modules/hosts/libreX60/configuration.nix
 create mode 100644 modules/hosts/libreX60/home.nix

(limited to 'modules')

diff --git a/modules/home/theme.nix b/modules/home/theme.nix
index 4128e1d..3bc1d8e 100644
--- a/modules/home/theme.nix
+++ b/modules/home/theme.nix
@@ -29,6 +29,18 @@ in {
 				description = "mint-y icons color eg. 'Aqua' or 'Red'";
 			};
 		};
+		theme.font = {
+			sansSerif = lib.mkOption {
+				type = lib.types.str;
+				default = "Inter";
+				description = "default sans serif font";
+			};
+			sansSerif = lib.mkOption {
+				type = lib.types.str;
+				default = "CommitMono";
+				description = "default monospace font";
+			};
+		};
 	};
 
 	config = {
@@ -43,8 +55,7 @@ in {
 				name = transformColorValue config.theme.mint.icons.color;
 			};
 			font = {
-				package = pkgs.inter;
-				name = "Inter";
+				name = config.theme.font.sansSerif;
 			};
 			cursorTheme = {
 				name = "Adwaita";
@@ -64,8 +75,8 @@ in {
 			platformTheme.name = "gtk3";
 		};
 		fonts.fontconfig.defaultFonts = {
-			sansSerif = [ "Inter" ];
-			monospace = [ "CommitMono" ];
+			sansSerif = [ config.theme.fonts.sansSerif ];
+			monospace = [ config.theme.fonts.monospace ];
 		};
 	};
 }
diff --git a/modules/hosts/libreX60/configuration.nix b/modules/hosts/libreX60/configuration.nix
new file mode 100644
index 0000000..942793d
--- /dev/null
+++ b/modules/hosts/libreX60/configuration.nix
@@ -0,0 +1,14 @@
+{ config, lib, pkgs, ... }: {
+	imports = [ ./hardware-configuration.nix ];
+	networking.hostName = "libreX60";
+
+	# Enable extra software pkgs
+	software.desktop = {
+		office.enable = true;
+	};
+
+	# Enable network drives
+	nas.enable = true;
+
+	system.stateVersion = "24.11";
+}
diff --git a/modules/hosts/libreX60/home.nix b/modules/hosts/libreX60/home.nix
new file mode 100644
index 0000000..453bfd6
--- /dev/null
+++ b/modules/hosts/libreX60/home.nix
@@ -0,0 +1,8 @@
+{ ... }: {
+	imports = [ ../../home ];
+
+	theme.mint.theme.color = "Dark-Red";
+	theme.mint.icons.color = "Red";
+	theme.font.sansSerif = "Tamzen";
+	theme.font.monospace = "Tamzen";
+}
diff --git a/modules/root/software/desktop.nix b/modules/root/software/desktop.nix
index 3f6cfae..88101d8 100644
--- a/modules/root/software/desktop.nix
+++ b/modules/root/software/desktop.nix
@@ -22,10 +22,8 @@
 	config = lib.mkIf config.software.desktop.enable {
 		environment.systemPackages = with pkgs; [
 			# Default
-			alacritty
 			arandr
 			dmenu
-			jellyfin-mpv-shim
 			libnotify
 			mpv
 			pavucontrol
@@ -62,6 +60,7 @@
 			thunderbird
 		] ++ pkgs.lib.optionals config.software.desktop.utilities.enable [
 			# Misc Utilities
+			jellyfin-mpv-shim
 			qbittorrent
 			qdirstat
 			remmina
-- 
cgit v1.2.3