From cbb78523879b852cbf1847c67171eaf3281d3a81 Mon Sep 17 00:00:00 2001 From: Szymon P Date: Sat, 21 Feb 2026 20:18:35 +0100 Subject: [PATCH] move ashell config to nix --- home.nix | 2 +- modules/ashell.nix | 72 ++++++++++++++++++++++++++++++++++++++++++++++ modules/kitty.nix | 4 +-- 3 files changed, 75 insertions(+), 3 deletions(-) create mode 100644 modules/ashell.nix diff --git a/home.nix b/home.nix index 65e5334..2951a4e 100644 --- a/home.nix +++ b/home.nix @@ -33,6 +33,7 @@ ./modules/git.nix ./modules/kitty.nix ./modules/satty.nix + ./modules/ashell.nix ]; home.stateVersion = "25.11"; # Please read the comment before changing. @@ -43,7 +44,6 @@ # Home Manager is pretty good at managing dotfiles. The primary way to manage # plain files is through 'home.file'. home.file = { - ".config/ashell/config.toml".source = ./dotfiles/ashell/config.toml; ".config/fastfetch".source = ./dotfiles/fastfetch; ".config/kitty".source = ./dotfiles/kitty; ".config/MangoHud".source = ./dotfiles/mangohud; diff --git a/modules/ashell.nix b/modules/ashell.nix new file mode 100644 index 0000000..f7841d3 --- /dev/null +++ b/modules/ashell.nix @@ -0,0 +1,72 @@ +{ ... }: + +{ + programs.ashell = { + enable = true; + package = null; + settings = { + outputs = { + Targets = [ "DP-1" ]; + }; + position = "Bottom"; + modules = { + + left = [ + "Clock" + "Workspaces" + ]; + center = [ "WindowTitle" ]; + right = [ + "Privacy" + "MediaPlayer" + "SystemInfo" + [ + "Tray" + "Settings" + ] + ]; + }; + + clock = { + format = "%H:%M | %e.%m "; + }; + + settings = { + remove_airplane_btn = true; + }; + + appearance = { + scale_factor = 1.2; + success_color = "#a6e3a1"; + text_color = "#cdd6f4"; + workspace_colors = [ + "#fab387" + "#b4befe" + "#cba6f7" + ]; + + primary_color = { + base = "#fab387"; + text = "#1e1e2e"; + }; + + danger_color = { + base = "#f38ba8"; + weak = "#f9e2af"; + }; + + background_color = { + base = "#1e1e2e"; + weak = "#313244"; + strong = "#45475a"; + }; + + secondary_color = { + base = "#11111b"; + strong = "#1b1b25"; + }; + }; + + }; + }; +} diff --git a/modules/kitty.nix b/modules/kitty.nix index 31fcea1..349ce08 100644 --- a/modules/kitty.nix +++ b/modules/kitty.nix @@ -1,9 +1,9 @@ -{ pkgs, lib, ... }: +{ lib, ... }: { programs.kitty = lib.mkForce { enable = true; - package = pkgs.runCommand "dummy-kitty" { } "mkdir $out"; + package = null; settings = { confirm_os_window_close = 0; dynamic_background_opacity = true;