some edit

This commit is contained in:
2025-12-13 17:00:40 +03:00
parent c3dca8312c
commit 257c6d2eed
6 changed files with 34 additions and 31 deletions
+6 -28
View File
@@ -1,9 +1,9 @@
{ config, pkgs, lib, ... }:
{ config, pkgs, lib, username, ... }:
# TODO: add OCR keybind on gnome
{
programs.home-manager.enable = true;
nixpkgs.config.allowUnfree = true;
home.packages = with pkgs; [ nixfmt-classic ];
imports = [
./modules/zsh/zsh.nix
@@ -11,36 +11,14 @@
./modules/git.nix
./modules/programs.nix
./modules/tmux.nix
./modules/cursor.nix
] ++ lib.optional (builtins.getEnv "DISABLE_HYPR" != "1")
./modules/hypr/hypr.nix
++ lib.optional (builtins.pathExists ./modules/my.nix) ./modules/my.nix;
home.pointerCursor = let
getFrom = url: hash: name: {
gtk.enable = true;
x11.enable = true;
name = name;
size = 48;
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/catppuccin/cursors/releases/download/v2.0.0/catppuccin-mocha-dark-cursors.zip"
"sha256-EbBzbSBalFx6oo85I7at/wYyoGZuJxIbOWBNrfqHey0=" "Catppuccin-Mocha-Dark";
# TODO: make it universal
home.username = "krosh";
home.homeDirectory = "/home/krosh";
home.stateVersion = "25.11";
programs.home-manager.enable = true;
home.enableNixpkgsReleaseCheck = false;
home.username = username;
home.homeDirectory = "/home/${username}";
home.stateVersion = "25.11";
}