hosts/dunamis/configuration.nix: switch theme
modules/home/desktop/niri/default.nix: redo strings modules/nixos/system/misc/default.nix: redo imports modules/nixos/system/misc/{stylix.nix => stylix/default.nix}: self-telling Signed-off-by: unexplrd <unexplrd@linerds.us>
This commit is contained in:
@ -18,7 +18,7 @@
|
|||||||
locale.ukrainian.enable = true;
|
locale.ukrainian.enable = true;
|
||||||
module.stylix = {
|
module.stylix = {
|
||||||
enable = true;
|
enable = true;
|
||||||
theme = "nord";
|
theme = "helios";
|
||||||
};
|
};
|
||||||
opentabletdriver.enable = false;
|
opentabletdriver.enable = false;
|
||||||
qmk-vial.enable = true;
|
qmk-vial.enable = true;
|
||||||
|
@ -256,7 +256,7 @@ in {
|
|||||||
}
|
}
|
||||||
{
|
{
|
||||||
timeout = 601;
|
timeout = 601;
|
||||||
on-timeout = "${pkgs.niri}/bin/niri msg action power-off-monitors";
|
on-timeout = getExe pkgs.niri + " msg action power-off-monitors";
|
||||||
}
|
}
|
||||||
];
|
];
|
||||||
};
|
};
|
||||||
@ -715,8 +715,8 @@ in {
|
|||||||
};
|
};
|
||||||
};
|
};
|
||||||
"tray" = {
|
"tray" = {
|
||||||
icon-size = 24;
|
icon-size = 16;
|
||||||
spacing = 2;
|
spacing = 4;
|
||||||
};
|
};
|
||||||
"clock" = {
|
"clock" = {
|
||||||
interval = 1;
|
interval = 1;
|
||||||
@ -770,7 +770,7 @@ in {
|
|||||||
format = "{volume}% {icon}";
|
format = "{volume}% {icon}";
|
||||||
format-muted = "";
|
format-muted = "";
|
||||||
format-icons = ["" "" ""];
|
format-icons = ["" "" ""];
|
||||||
on-click = "${pkgs.pwvucontrol}/bin/pwvucontrol";
|
on-click = getExe pkgs.pwvucontrol;
|
||||||
on-click-right = "wpctl set-mute @DEFAULT_SINK@ toggle";
|
on-click-right = "wpctl set-mute @DEFAULT_SINK@ toggle";
|
||||||
};
|
};
|
||||||
"custom/notification" = {
|
"custom/notification" = {
|
||||||
@ -972,7 +972,10 @@ in {
|
|||||||
if config.stylix.polarity == "dark"
|
if config.stylix.polarity == "dark"
|
||||||
then "Papirus-Dark"
|
then "Papirus-Dark"
|
||||||
else "Papirus-Light";
|
else "Papirus-Light";
|
||||||
package = pkgs.papirus-nord;
|
package =
|
||||||
|
if osConfig.module.stylix.theme == "nord"
|
||||||
|
then pkgs.papirus-nord
|
||||||
|
else pkgs.papirus-icon-theme;
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
qt = {
|
qt = {
|
||||||
|
@ -3,6 +3,6 @@
|
|||||||
./locale.nix
|
./locale.nix
|
||||||
./opentabletdriver.nix
|
./opentabletdriver.nix
|
||||||
./qmk-vial.nix
|
./qmk-vial.nix
|
||||||
./stylix.nix
|
./stylix
|
||||||
];
|
];
|
||||||
}
|
}
|
||||||
|
@ -12,8 +12,6 @@
|
|||||||
|
|
||||||
cfg = config.module.stylix;
|
cfg = config.module.stylix;
|
||||||
|
|
||||||
cursorSize = 32;
|
|
||||||
|
|
||||||
iosevkaPackage =
|
iosevkaPackage =
|
||||||
if stateVersion == "24.11"
|
if stateVersion == "24.11"
|
||||||
then pkgs.nerdfonts.override {fonts = ["Iosevka"];}
|
then pkgs.nerdfonts.override {fonts = ["Iosevka"];}
|
||||||
@ -22,6 +20,14 @@
|
|||||||
if stateVersion == "24.11"
|
if stateVersion == "24.11"
|
||||||
then pkgs.nerdfonts.override {fonts = ["Iosevka Term"];}
|
then pkgs.nerdfonts.override {fonts = ["Iosevka Term"];}
|
||||||
else pkgs.nerd-fonts.iosevka-term;
|
else pkgs.nerd-fonts.iosevka-term;
|
||||||
|
mesloLgPackage =
|
||||||
|
if stateVersion == "24.11"
|
||||||
|
then pkgs.nerdfonts.override {fonts = ["MesloLG"];}
|
||||||
|
else pkgs.nerd-fonts.meslo-lg;
|
||||||
|
jetBrainsMonoPackage =
|
||||||
|
if stateVersion == "24.11"
|
||||||
|
then pkgs.nerdfonts.override {fonts = ["JetBrainsMono"];}
|
||||||
|
else pkgs.nerd-fonts.jetbrains-mono;
|
||||||
|
|
||||||
themes = {
|
themes = {
|
||||||
nord = {
|
nord = {
|
||||||
@ -46,6 +52,7 @@
|
|||||||
cursor = {
|
cursor = {
|
||||||
package = pkgs.nordzy-cursor-theme;
|
package = pkgs.nordzy-cursor-theme;
|
||||||
name = "Nordzy-cursors";
|
name = "Nordzy-cursors";
|
||||||
|
size = 32;
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
|
|
||||||
@ -71,6 +78,33 @@
|
|||||||
cursor = {
|
cursor = {
|
||||||
package = pkgs.nordzy-cursor-theme;
|
package = pkgs.nordzy-cursor-theme;
|
||||||
name = "Nordzy-cursors-white";
|
name = "Nordzy-cursors-white";
|
||||||
|
size = 32;
|
||||||
|
};
|
||||||
|
};
|
||||||
|
|
||||||
|
helios = {
|
||||||
|
polarity = "dark";
|
||||||
|
scheme = "${pkgs.base16-schemes}/share/themes/helios.yaml";
|
||||||
|
wallpaper = builtins.fetchurl {
|
||||||
|
url = "https://w.wallhaven.cc/full/we/wallhaven-wejkzx.jpg";
|
||||||
|
name = "wallhaven-wejkzx.jpg";
|
||||||
|
sha256 = "sha256:145q483q1yvs4pndh2r57gfvbd9jc15sry9qz31avqxyrn8ama52";
|
||||||
|
};
|
||||||
|
|
||||||
|
serif = {
|
||||||
|
package = jetBrainsMonoPackage;
|
||||||
|
name = "JetBrainsMono Nerd Font Propo";
|
||||||
|
};
|
||||||
|
|
||||||
|
monospace = {
|
||||||
|
package = jetBrainsMonoPackage;
|
||||||
|
name = "JetBrainsMono Nerd Font Mono";
|
||||||
|
};
|
||||||
|
|
||||||
|
cursor = {
|
||||||
|
package = pkgs.bibata-cursors;
|
||||||
|
name = "Bibata-Modern-Classic";
|
||||||
|
size = 24;
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
@ -131,8 +165,7 @@ in {
|
|||||||
}
|
}
|
||||||
// optionalAttrs cfg.useCursor {
|
// optionalAttrs cfg.useCursor {
|
||||||
cursor = {
|
cursor = {
|
||||||
inherit (themes.${cfg.theme}.cursor) package name;
|
inherit (themes.${cfg.theme}.cursor) package name size;
|
||||||
size = cursorSize;
|
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
};
|
};
|
Reference in New Issue
Block a user