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
+1 -1
View File
@@ -25,7 +25,7 @@
home-manager.lib.homeManagerConfiguration {
pkgs = nixpkgs.legacyPackages.${system};
modules = [ ./home.nix ];
extraSpecialArgs = { inherit inputs; };
extraSpecialArgs = { inherit inputs username; };
};
};
}
+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";
}
+24
View File
@@ -0,0 +1,24 @@
{ config, pkgs, lib, ... }:
{
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";
}
+1 -1
View File
@@ -68,7 +68,7 @@
debug = { disable_logs = false; };
monitor = [
"eDP-1,preferred,auto,1.333333"
"eDP-1,preferred,auto,1.25"
"HDMI-A-1,preferred,auto-left,auto"
"HDMI-A-2,preferred,auto-left,auto"
];
+1
View File
@@ -8,6 +8,7 @@
vscode
spotify
obsidian
nixfmt-classic
# lmstudio
plantuml
# amnezia-vpn
+1 -1
View File
@@ -25,6 +25,6 @@ cp -a "$SRC_FOLDER/." "$DEST_FOLDER/"
echo "Done! Files from '$SRC_FOLDER' have been copied to '$DEST_FOLDER'."
# echo "You may now run 'sudo nixos-rebuild switch' if needed."
nixos-rebuild switch
nixos-rebuild switch --fast
echo "Done!"