Compare commits

..

No commits in common. "9e9fc56b23f7e59266e291a0d6279cae5a800ec1" and "a450a41293ff964f2cb99b17493318ab122a6d15" have entirely different histories.

4 changed files with 58 additions and 67 deletions

View File

@ -9,7 +9,7 @@
./git.nix ./git.nix
./tmux.nix ./tmux.nix
./user.nix ./user.nix
./theme.nix ./rose-pine-cursor.nix
./projects.nix ./projects.nix
./easyeffects.nix ./easyeffects.nix
./lazygit.nix ./lazygit.nix

View File

@ -0,0 +1,34 @@
{ pkgs, lib, config, ... }:
let
cfg = config.snowhawk.cursor;
in
{
options.snowhawk.cursor = {
enable = lib.mkEnableOption "cursor";
};
config = lib.mkIf cfg.enable {
home.pointerCursor =
let
getFrom = url: hash: name: {
gtk.enable = true;
x11.enable = true;
name = name;
size = 16;
package =
pkgs.runCommand "moveUp" { } ''
mkdir -p $out/share/icons
ln -s ${pkgs.fetchzip {
url = url;
hash = hash;
}} $out/share/icons/${name}
'';
};
in
getFrom
"https://github.com/rose-pine/cursor/releases/download/v1.1.0/BreezeX-RosePine-Linux.tar.xz"
"sha256-t5xwAPGhuQUfGThedLsmtZEEp1Ljjo3Udhd5Ql3O67c="
"BreezeX-RosePine";
};
}

View File

@ -1,65 +0,0 @@
{ pkgs, lib, config, ... }:
let
cfg = config.snowhawk.theme;
in
{
options.snowhawk.theme = {
enable = lib.mkEnableOption "theme";
cursor = lib.mkOption {
default = true;
example = false;
description = "enable home.pointerCursor theme";
type = lib.types.bool;
};
};
config = lib.mkIf cfg.enable {
gtk = {
enable = true;
theme = {
package = pkgs.rose-pine-gtk-theme;
name = "rose-pine";
};
iconTheme = {
package = pkgs.rose-pine-icon-theme;
name = "rose-pine-icons";
};
};
# Set system dark mode
dconf.settings = {
"org/freedesktop/appearance" = {
color-scheme = 1;
};
"org/gnome/desktop/interface" = {
color-scheme = "prefer-dark";
};
};
home.pointerCursor = lib.mkIf cfg.cursor
(
let
getFrom = url: hash: name: {
gtk.enable = true;
x11.enable = true;
name = name;
size = 16;
package =
pkgs.runCommand "moveUp" { } ''
mkdir -p $out/share/icons
ln -s ${pkgs.fetchzip {
url = url;
hash = hash;
}} $out/share/icons/${name}
'';
};
in
getFrom
"https://github.com/rose-pine/cursor/releases/download/v1.1.0/BreezeX-RosePine-Linux.tar.xz"
"sha256-t5xwAPGhuQUfGThedLsmtZEEp1Ljjo3Udhd5Ql3O67c="
"BreezeX-RosePine"
);
};
}

View File

@ -10,7 +10,7 @@
package = inputs.neovim-overlay.packages.${pkgs.system}.default; package = inputs.neovim-overlay.packages.${pkgs.system}.default;
}; };
snowhawk.alacritty.enable = true; snowhawk.alacritty.enable = true;
snowhawk.theme.enable = true; snowhawk.cursor.enable = true;
snowhawk.projects.enable = true; snowhawk.projects.enable = true;
snowhawk.lazygit.enable = true; snowhawk.lazygit.enable = true;
@ -54,6 +54,28 @@
# dotnet-sdk_8 # dotnet-sdk_8
]; ];
gtk = {
enable = true;
theme = {
package = pkgs.rose-pine-gtk-theme;
name = "rose-pine";
};
iconTheme = {
package = pkgs.rose-pine-icon-theme;
name = "rose-pine-icons";
};
};
# Set system dark mode
dconf.settings = {
"org/freedesktop/appearance" = {
color-scheme = 1;
};
"org/gnome/desktop/interface" = {
color-scheme = "prefer-dark";
};
};
home.file = { }; home.file = { };
# wayland.windowManager.hyprland = { # wayland.windowManager.hyprland = {