Update theems

This commit is contained in:
albert 2024-02-18 20:59:12 +09:00
parent 0098719998
commit db2f75f3ab
No known key found for this signature in database
GPG key ID: 64F6C4EB46C4543A
2 changed files with 30 additions and 23 deletions

View file

@ -9,7 +9,7 @@
home-manager.url = "github:nix-community/home-manager/release-23.11"; home-manager.url = "github:nix-community/home-manager/release-23.11";
home-manager.inputs.nixpkgs.follows = "nixpkgs"; home-manager.inputs.nixpkgs.follows = "nixpkgs";
# Nix colorizer / themer # Nix colorizer / themer
stylix.url = "github:danth/stylix/release-23.11"; green.url = "github:danth/stylix/release-23.11";
# lanzaboote - Secureboot Configuration # lanzaboote - Secureboot Configuration
lanzaboote.url = "github:nix-community/lanzaboote"; lanzaboote.url = "github:nix-community/lanzaboote";
lanzaboote.inputs.nixpkgs.follows = "nixpkgs"; lanzaboote.inputs.nixpkgs.follows = "nixpkgs";
@ -61,7 +61,7 @@
framework-server = libx.mkHost { hostname = "framework-server"; }; framework-server = libx.mkHost { hostname = "framework-server"; };
nuc-server = libx.mkHost { hostname = "nuc-server"; }; nuc-server = libx.mkHost { hostname = "nuc-server"; };
nixos-desktop = libx.mkHost { hostname = "nixos-desktop"; unfree = true; desktop = "hyprland"; theme = "tokyo-night"; }; nixos-desktop = libx.mkHost { hostname = "nixos-desktop"; unfree = true; desktop = "hyprland"; theme = "tokyo-night"; };
nixos-framework = libx.mkHost { hostname = "nixos-framework"; unfree = true; desktop = "hyprland"; theme = "stylix"; }; nixos-framework = libx.mkHost { hostname = "nixos-framework"; unfree = true; desktop = "hyprland"; theme = "green"; };
backups-rpi4 = libx.mkHost { hostname = "backups-rpi4"; system = "aarch64-linux"; type = "small"; }; backups-rpi4 = libx.mkHost { hostname = "backups-rpi4"; system = "aarch64-linux"; type = "small"; };
piaware-rpi4 = libx.mkHost { hostname = "piaware-rpi4"; system = "aarch64-linux"; type = "small"; }; piaware-rpi4 = libx.mkHost { hostname = "piaware-rpi4"; system = "aarch64-linux"; type = "small"; };
quitman-rpi4 = libx.mkHost { hostname = "quitman-rpi4"; system = "aarch64-linux"; type = "small"; }; quitman-rpi4 = libx.mkHost { hostname = "quitman-rpi4"; system = "aarch64-linux"; type = "small"; };
@ -71,7 +71,7 @@
"albert@framework-server" = libx.mkHome { hostname = "framework-server"; }; "albert@framework-server" = libx.mkHome { hostname = "framework-server"; };
"albert@nuc-server" = libx.mkHome { hostname = "nuc-server"; }; "albert@nuc-server" = libx.mkHome { hostname = "nuc-server"; };
"albert@nixos-desktop" = libx.mkHome { hostname = "nixos-desktop"; desktop = "hyprland"; theme = "tokyo-night"; }; "albert@nixos-desktop" = libx.mkHome { hostname = "nixos-desktop"; desktop = "hyprland"; theme = "tokyo-night"; };
"albert@nixos-framework" = libx.mkHome { hostname = "nixos-framework"; desktop = "hyprland"; theme = "stylix"; }; "albert@nixos-framework" = libx.mkHome { hostname = "nixos-framework"; desktop = "hyprland"; theme = "green"; };
"albert@backups-rpi4" = libx.mkHome { hostname = "backups-rpi4"; system = "aarch64-linux"; type = "small"; }; "albert@backups-rpi4" = libx.mkHome { hostname = "backups-rpi4"; system = "aarch64-linux"; type = "small"; };
"albert@piaware-rpi4" = libx.mkHome { hostname = "piaware-rpi4"; system = "aarch64-linux"; type = "small"; }; "albert@piaware-rpi4" = libx.mkHome { hostname = "piaware-rpi4"; system = "aarch64-linux"; type = "small"; };
"albert@quitman-rpi4" = libx.mkHome { hostname = "quitman-rpi4"; system = "aarch64-linux"; type = "small"; }; "albert@quitman-rpi4" = libx.mkHome { hostname = "quitman-rpi4"; system = "aarch64-linux"; type = "small"; };

View file

@ -1,10 +1,17 @@
{ config, lib, ... }: { config, lib, ... }:
let let
usernameColor = "#${config.lib.stylix.colors.base07}"; usernameBG = "#${config.lib.stylix.colors.base08}";
directoryColor = "#${config.lib.stylix.colors.base06}"; directoryBG = "#${config.lib.stylix.colors.base09}";
statusolor = "#${config.lib.stylix.colors.base05}"; statusBG = "#${config.lib.stylix.colors.base0A}";
errorColor = "#${config.lib.stylix.colors.base04}"; errorBG = "#${config.lib.stylix.colors.base0B}";
fgColor = "#${config.lib.stylix.colors.base02}"; timeBG = "#${config.lib.stylix.colors.base06}";
usernameFG = "#${config.lib.stylix.colors.base06}";
directoryFG = "#${config.lib.stylix.colors.base07}";
statusFG = "#${config.lib.stylix.colors.base01}";
errorFG = "#${config.lib.stylix.colors.base00}";
timeFG = "#${config.lib.stylix.colors.base0C}";
blackColor = "#${config.lib.stylix.colors.base00}"; blackColor = "#${config.lib.stylix.colors.base00}";
whiteColor = "#${config.lib.stylix.colors.base06}"; whiteColor = "#${config.lib.stylix.colors.base06}";
in in
@ -14,39 +21,39 @@ in
enableBashIntegration = true; enableBashIntegration = true;
settings = { settings = {
format = lib.concatStrings [ format = lib.concatStrings [
"[](${usernameColor})" "[](${usernameBG})"
"$username" "$username"
"$hostname" "$hostname"
"[](bg:${directoryColor} fg:${usernameColor})" "[](bg:${directoryBG} fg:${usernameBG})"
"$directory" "$directory"
"[](fg:${directoryColor} bg:${statusolor})" "[](fg:${directoryBG} bg:${statusBG})"
"$git_branch" "$git_branch"
"$git_status" "$git_status"
"$rust" "$rust"
"$docker_context" "$docker_context"
"$nix_shell" "$nix_shell"
"[](fg:${statusolor} bg:${errorColor})" "[](fg:${statusBG} bg:${errorBG})"
"$status" "$status"
"[ ](fg:${errorColor})" "[ ](fg:${errorBG})"
]; ];
username = { username = {
show_always = true; show_always = true;
style_user = "fg:${whiteColor} bg:${usernameColor}"; style_user = "fg:${usernameFG} bg:${usernameBG}";
style_root = "fg:${whiteColor} bg:${usernameColor}"; style_root = "fg:${usernameFG} bg:${usernameBG}";
format = "[$user]($style)"; format = "[$user]($style)";
disabled = false; disabled = false;
}; };
hostname = { hostname = {
ssh_only = true; ssh_only = true;
style = "fg:${whiteColor} bg:${usernameColor}"; style = "fg:${usernameFG} bg:${usernameBG}";
format = "[@$hostname]($style)"; format = "[@$hostname]($style)";
disabled = false; disabled = false;
}; };
os = { os = {
style = "bg:${usernameColor}"; style = "bg:${usernameBG}";
disabled = true; disabled = true;
}; };
@ -55,11 +62,11 @@ in
heuristic = true; heuristic = true;
symbol = " "; symbol = " ";
format = "[$symbol]($style)"; format = "[$symbol]($style)";
style = "fg:${fgColor} bg:${statusolor}"; style = "fg:${statusFG} bg:${statusBG}";
}; };
directory = { directory = {
style = "fg:${fgColor} bg:${directoryColor}"; style = "fg:${directoryFG} bg:${directoryBG}";
format = "[ $path ]($style)"; format = "[ $path ]($style)";
truncation_length = 3; truncation_length = 3;
truncation_symbol = "/"; truncation_symbol = "/";
@ -73,17 +80,17 @@ in
git_branch = { git_branch = {
symbol = ""; symbol = "";
style = "fg:${fgColor} bg:${statusolor}"; style = "fg:${statusFG} bg:${statusBG}";
format = "[ $symbol $branch ]($style)"; format = "[ $symbol $branch ]($style)";
}; };
git_status = { git_status = {
style = "fg:${fgColor} bg:${statusolor}"; style = "fg:${statusFG} bg:${statusBG}";
format = "[$all_status$ahead_behind ]($style)"; format = "[$all_status$ahead_behind ]($style)";
}; };
status = { status = {
style = "fg:${fgColor} bg:${errorColor}"; style = "fg:${errorFG} bg:${errorBG}";
format = "[ $status]($style)"; format = "[ $status]($style)";
disabled = false; disabled = false;
}; };
@ -91,7 +98,7 @@ in
time = { time = {
disabled = false; disabled = false;
time_format = "%R"; # Hour:Minute Format time_format = "%R"; # Hour:Minute Format
style = "fg:${fgColor} bg:${blackColor}"; style = "fg:${timeFG} bg:${timeBG}";
format = "[ $time]($style)"; format = "[ $time]($style)";
}; };
}; };