move ashell config to nix

This commit is contained in:
2026-02-21 20:18:35 +01:00
parent b614d6e04d
commit cbb7852387
3 changed files with 75 additions and 3 deletions

View File

@@ -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;

72
modules/ashell.nix Normal file
View File

@@ -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";
};
};
};
};
}

View File

@@ -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;