aboutsummaryrefslogtreecommitdiff
path: root/modules/desktop
diff options
context:
space:
mode:
authorCollin Williams <96917990+bluedragon1221@users.noreply.github.com>2025-09-01 15:46:40 -0500
committerCollin Williams <96917990+bluedragon1221@users.noreply.github.com>2025-09-01 15:46:40 -0500
commit464e39e3d96b513c0ae9d9b07bcc5ae47b48e622 (patch)
treeb95a6cce1bf4a540d5c777c7f01fc9864d82a26f /modules/desktop
parenteb4c6fa1ba1e3a3bfe2291727bc89e0928139b8e (diff)
start using the terminal more on jupiter => make some changes
Diffstat (limited to 'modules/desktop')
-rw-r--r--modules/desktop/home/default.nix6
-rw-r--r--modules/desktop/options.nix1
-rw-r--r--modules/desktop/system/default.nix1
-rw-r--r--modules/desktop/system/programs/alacritty.nix76
-rw-r--r--modules/desktop/system/programs/blackbox.nix2
5 files changed, 86 insertions, 0 deletions
diff --git a/modules/desktop/home/default.nix b/modules/desktop/home/default.nix
index be5e97f..914b450 100644
--- a/modules/desktop/home/default.nix
+++ b/modules/desktop/home/default.nix
@@ -1,5 +1,11 @@
{
+ lib,
+ config,
+ ...
+}: {
imports = [
./gtk
];
+
+ qt.style = lib.optionalAttrs (config.collinux.theme == "adwaita") {name = "adwaita-dark";};
}
diff --git a/modules/desktop/options.nix b/modules/desktop/options.nix
index 9bc4099..6b1e991 100644
--- a/modules/desktop/options.nix
+++ b/modules/desktop/options.nix
@@ -52,6 +52,7 @@ in {
foot.enable = mkEnableOption "foot";
blackbox.enable = mkEnableOption "blackbox";
+ alacritty.enable = mkEnableOption "alacritty";
};
};
};
diff --git a/modules/desktop/system/default.nix b/modules/desktop/system/default.nix
index efc39bc..8827070 100644
--- a/modules/desktop/system/default.nix
+++ b/modules/desktop/system/default.nix
@@ -6,6 +6,7 @@
./programs/firefox.nix
./programs/foot.nix
./programs/blackbox.nix
+ ./programs/alacritty.nix
./components/fuzzel.nix
./components/dunst.nix
diff --git a/modules/desktop/system/programs/alacritty.nix b/modules/desktop/system/programs/alacritty.nix
new file mode 100644
index 0000000..f73a901
--- /dev/null
+++ b/modules/desktop/system/programs/alacritty.nix
@@ -0,0 +1,76 @@
+{
+ pkgs,
+ config,
+ lib,
+ ...
+}: let
+ cfg = config.collinux.desktop.programs.alacritty;
+in
+ lib.mkIf cfg.enable {
+ hjem.users."${config.collinux.user.name}" = {
+ files.".config/alacritty/alacritty.toml" = {
+ value = {
+ general = {
+ import = ["keys.toml" "colors.toml"];
+ live_config_reload = true;
+ };
+ font = {
+ normal.family = "Iosevka Nerd Font";
+ size = 12;
+ };
+ };
+ generator = (pkgs.formats.toml {}).generate "alacritty.toml";
+ };
+
+ files.".config/alacritty/colors.toml".text = ''
+ [colors]
+ draw_bold_text_with_bright_colors = false
+
+ # Default colors
+ [colors.primary]
+ background = '#242424'
+ foreground = '#C5C6C5'
+
+ # Colors the cursor will use if `custom_cursor_colors` is true
+ [colors.cursor]
+ text = '#2D3234'
+ cursor = '#C5C6C5'
+
+ # Normal colors
+ [colors.normal]
+ black = '#2D3234'
+ red = '#FFA500'
+ green = '#6FEE91'
+ yellow = '#91EE6F'
+ blue = '#916FB4'
+ magenta = '#EE6F91'
+ cyan = '#6F91B4'
+ white = '#C5C6C5'
+
+ # Bright colors
+ [colors.bright]
+ black = '#566164'
+ red = '#FFFF60'
+ green = '#33393B'
+ yellow = '#4B5356'
+ blue = '#919494'
+ magenta = '#D3D4D5'
+ cyan = '#EE6F6F'
+ white = '#EEEEEC'
+ '';
+
+ files.".config/alacritty/keys.toml".text = ''
+ [[keyboard.bindings]]
+ chars = "\u001b[27;5;9~"
+ key = "Tab"
+ mods = "Control"
+
+ [[keyboard.bindings]]
+ chars = "\u001b[27;5;13~"
+ key = "Enter"
+ mods = "Control"
+ '';
+
+ packages = [pkgs.alacritty];
+ };
+ }
diff --git a/modules/desktop/system/programs/blackbox.nix b/modules/desktop/system/programs/blackbox.nix
index 37567b5..9cff44a 100644
--- a/modules/desktop/system/programs/blackbox.nix
+++ b/modules/desktop/system/programs/blackbox.nix
@@ -20,6 +20,8 @@ in
show-scrollbars = false;
terminal-padding = lib.gvariant.mkTuple (builtins.map lib.gvariant.mkInt16 [10 10 10 10]);
+ font = "Iosevka Nerd Font 12";
+
floating-controls = false;
show-headerbar = true;
};