some edit
This commit is contained in:
+6
-28
@@ -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";
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user