From 8254cb871e065348bcfaa13a4ca6f0c2601baea2 Mon Sep 17 00:00:00 2001 From: Tomas Rivera Date: Wed, 3 Jun 2026 10:28:00 +0200 Subject: [PATCH] Auto: cleanup-2026-06-03T08-27-47Z --- modules/applications/browser.nix | 8 ++-- modules/applications/hyprland.nix | 2 +- modules/applications/notewrapper.nix | 38 ++++++++--------- modules/applications/ssh.nix | 6 ++- modules/applications/zsh.nix | 2 +- modules/other/user.nix | 2 +- modules/packages/hyprlandPlugins.nix | 63 ++++++++++++++-------------- modules/utilities/development.nix | 2 +- modules/utilities/gitBackup.nix | 17 ++++---- modules/utilities/otherUtils.nix | 8 +--- 10 files changed, 72 insertions(+), 76 deletions(-) diff --git a/modules/applications/browser.nix b/modules/applications/browser.nix index 3fdc1f0..fe79cf6 100644 --- a/modules/applications/browser.nix +++ b/modules/applications/browser.nix @@ -364,25 +364,25 @@ } { name = "nixpkgs' failing and orphan packages"; - tags = [ "nixpkgs" "fail" "orphan" "ZH" "zero hydra failure"]; + tags = ["nixpkgs" "fail" "orphan" "ZH" "zero hydra failure"]; keyword = "Zero hydra failure orphan packages"; url = "https://zh.fail/failed/by-maintainer/_.html"; } { name = "NixOS Manual - Unstable"; - tags = [ "nixos" "manual" "unstable"]; + tags = ["nixos" "manual" "unstable"]; keyword = "NixOS manual"; url = "https://nixos.org/manual/nixos/unstable/"; } { name = "Nixpgks Reference Manual - Unstable"; - tags = [ "nixpkgs" "manual" "reference" "unstable" ]; + tags = ["nixpkgs" "manual" "reference" "unstable"]; keyword = "nixpkgs reference manual"; url = "https://nixos.org/manual/nixpkgs/unstable/"; } { name = "Nix Reference Manual - 2.34."; - tags = [ "nix" "manual" "reference" "2.34"]; + tags = ["nix" "manual" "reference" "2.34"]; keyword = "nix reference manual"; url = "https://nix.dev/manual/nix/2.34/nix-2.34.html"; } diff --git a/modules/applications/hyprland.nix b/modules/applications/hyprland.nix index 5598201..3ef3ca9 100644 --- a/modules/applications/hyprland.nix +++ b/modules/applications/hyprland.nix @@ -60,7 +60,7 @@ #self.packages.${pkgs-unstable.system}.hypr-dynamic-cursors-manual #pkgs-unstable.hyprlandPlugins.hypr-dynamic-cursors # currently broken ]; - wayland.windowManager.hyprland.configType = "hyprlang"; + wayland.windowManager.hyprland.configType = "hyprlang"; wayland.windowManager.hyprland.settings = { "$mod" = "SUPER"; "$term" = "kitty"; diff --git a/modules/applications/notewrapper.nix b/modules/applications/notewrapper.nix index 0bb4cf0..764504e 100644 --- a/modules/applications/notewrapper.nix +++ b/modules/applications/notewrapper.nix @@ -1,4 +1,4 @@ -{inputs, ... }: { +{inputs, ...}: { flake.homeModules.notewrapper = {pkgs, ...}: { home.packages = [ inputs.notewrapper.packages.${pkgs.system}.default @@ -7,24 +7,24 @@ enable = true; force = true; text = '' -{ - "directory": ["~/Documents/Notes/", "~/test/"], - "render": true, - "jumpToEndOfFileOnLaunch": true, - "editor": "neovim", - "journalRegex": ".*journal.*", - "dateEntry": "# %Y %m %d %a", - "newLineOnOpening": true, - "backup": { - "enable": true, - "directory": { - "~/Documents/Notes/": "~/kdrive/Notes/", - "~/test/": "~/backupTest/" - }, - "interval": "daily", - "rsyncArgs": ["-Lqah", "--update"] - } -} + { + "directory": ["~/Documents/Notes/", "~/test/"], + "render": true, + "jumpToEndOfFileOnLaunch": true, + "editor": "neovim", + "journalRegex": ".*journal.*", + "dateEntry": "# %Y %m %d %a", + "newLineOnOpening": true, + "backup": { + "enable": true, + "directory": { + "~/Documents/Notes/": "~/kdrive/Notes/", + "~/test/": "~/backupTest/" + }, + "interval": "daily", + "rsyncArgs": ["-Lqah", "--update"] + } + } ''; }; }; diff --git a/modules/applications/ssh.nix b/modules/applications/ssh.nix index 7d56ea4..bc56af6 100644 --- a/modules/applications/ssh.nix +++ b/modules/applications/ssh.nix @@ -3,7 +3,8 @@ _: { programs.ssh = { enable = true; enableDefaultConfig = false; # will be removed in the futur. Removes evaluation warning - /*settings = { + /* + settings = { # equivalent to the default config #forwardAgent = false; # give errors in home-manager 26.05 @@ -16,7 +17,8 @@ _: { #controlMaster = "no"; #controlPath = "~/.ssh/master-%r@%n:%p"; #controlPersist = "no"; - };*/ + }; + */ }; services.ssh-agent.enable = true; home.file.".ssh/config".text = '' diff --git a/modules/applications/zsh.nix b/modules/applications/zsh.nix index c374757..b63a7db 100644 --- a/modules/applications/zsh.nix +++ b/modules/applications/zsh.nix @@ -25,7 +25,7 @@ command cat "$@" fi } - + custom-eza() { # behaves differently if we just call it or if we pipe initContent if [[ -t 1 ]]; then eza -hlF -aa --color=always --hyperlink --group-directories-first --show-symlinks --icons=always --git --no-permissions "$@" diff --git a/modules/other/user.nix b/modules/other/user.nix index 884612f..5f3b20b 100644 --- a/modules/other/user.nix +++ b/modules/other/user.nix @@ -50,6 +50,6 @@ _: { extraConfig = '' Defaults pwfeedback ''; - }; + }; }; } diff --git a/modules/packages/hyprlandPlugins.nix b/modules/packages/hyprlandPlugins.nix index ddc580a..db288c8 100644 --- a/modules/packages/hyprlandPlugins.nix +++ b/modules/packages/hyprlandPlugins.nix @@ -1,43 +1,42 @@ _: { - perSystem = {pkgs-unstable, ...}: { + perSystem = _: { packages.hypr-dynamic-cursors-manual = { - lib, - mkHyprlandPlugin, - fetchFromGitHub, - nix-update-script, -}: + lib, + mkHyprlandPlugin, + fetchFromGitHub, + nix-update-script, + }: + mkHyprlandPlugin { + pluginName = "hypr-dynamic-cursors"; + version = "0-unstable-2026-05-29"; -mkHyprlandPlugin { - pluginName = "hypr-dynamic-cursors"; - version = "0-unstable-2026-05-29"; + src = fetchFromGitHub { + owner = "VirtCode"; + repo = "hypr-dynamic-cursors"; + rev = "1de08deb7d495124ce88b342fecc7e7542d0672f"; + hash = "sha256-Ck9dFUfj/zDSab16CzsGWEMNeSNDhhDOB0JWeHzVvjk="; + }; - src = fetchFromGitHub { - owner = "VirtCode"; - repo = "hypr-dynamic-cursors"; - rev = "1de08deb7d495124ce88b342fecc7e7542d0672f"; - hash = "sha256-Ck9dFUfj/zDSab16CzsGWEMNeSNDhhDOB0JWeHzVvjk="; - }; + dontUseCmakeConfigure = true; - dontUseCmakeConfigure = true; + installPhase = '' + runHook preInstall - installPhase = '' - runHook preInstall + mkdir -p $out/lib + mv out/dynamic-cursors.so $out/lib/libhypr-dynamic-cursors.so - mkdir -p $out/lib - mv out/dynamic-cursors.so $out/lib/libhypr-dynamic-cursors.so + runHook postInstall + ''; - runHook postInstall - ''; + passthru.updateScript = nix-update-script {extraArgs = ["--version=branch"];}; - passthru.updateScript = nix-update-script { extraArgs = [ "--version=branch" ]; }; - - meta = { - description = "Plugin to make your Hyprland cursor more realistic"; - homepage = "https://github.com/VirtCode/hypr-dynamic-cursors"; - license = lib.licenses.mit; - maintainers = with lib.maintainers; [ donovanglover ]; - platforms = lib.platforms.linux; - }; -}; + meta = { + description = "Plugin to make your Hyprland cursor more realistic"; + homepage = "https://github.com/VirtCode/hypr-dynamic-cursors"; + license = lib.licenses.mit; + maintainers = with lib.maintainers; [donovanglover]; + platforms = lib.platforms.linux; + }; + }; }; } diff --git a/modules/utilities/development.nix b/modules/utilities/development.nix index 3b55e5d..5a454ed 100644 --- a/modules/utilities/development.nix +++ b/modules/utilities/development.nix @@ -1,4 +1,4 @@ -{self, ...}: { +_: { flake.nixosModules.development = { pkgs, pkgs-unstable, diff --git a/modules/utilities/gitBackup.nix b/modules/utilities/gitBackup.nix index cc6b278..455283c 100644 --- a/modules/utilities/gitBackup.nix +++ b/modules/utilities/gitBackup.nix @@ -35,7 +35,6 @@ RandomizedDelaySec = "20min"; }; }; - }; perSystem = {pkgs, ...}: { packages.custom-gitBackup = pkgs.writeShellApplication { @@ -56,14 +55,14 @@ "https://github.com/tomasriveral/fractal-cli.git" "https://github.com/tomasriveral/boids.git" ) - + LOCAL_BACKUP_DIR="$HOME/.gitBackups" CLOUD_DIR="$HOME/kdrive/Code/gitBackups" - + # Create backup directories if they don't exist mkdir -p "$LOCAL_BACKUP_DIR" mkdir -p "$CLOUD_DIR" - + notify_error() { local message="$1" notify-send "Git Backup Failed" "$message" @@ -72,12 +71,12 @@ -r "\!7j-78_02dHROeLj4Ns8F12eo4IiZGv4zNsQ_1-WlyIU" } - + for REPO in "''${REPOS[@]}"; do # Extract repo name (without .git) REPO_NAME=$(basename "$REPO" .git) LOCAL_REPO_PATH="$LOCAL_BACKUP_DIR/$REPO_NAME.git" - + if [ ! -d "$LOCAL_REPO_PATH" ]; then # Clone mirror if it doesn't exist echo "Cloning $REPO..." @@ -88,13 +87,13 @@ cd "$LOCAL_REPO_PATH" || { notify_error "Cannot enter $LOCAL_REPO_PATH"; continue; } git remote update || { notify_error "Failed to update $REPO"; continue; } fi - + # Rsync to cloud directory (only changes, preserve permissions) echo "Syncing $REPO_NAME to cloud..." rsync -a --delete "$LOCAL_REPO_PATH/" "$CLOUD_DIR/$REPO_NAME/" || { notify_error "Failed to rsync $REPO_NAME"; continue; } - + done - + echo "All backups completed." ''; }; diff --git a/modules/utilities/otherUtils.nix b/modules/utilities/otherUtils.nix index 348e515..e0f4a1a 100644 --- a/modules/utilities/otherUtils.nix +++ b/modules/utilities/otherUtils.nix @@ -1,11 +1,7 @@ -{self, inputs, ...}: { +{self, ...}: { flake.nixosModules.otherUtils = # try to keep packages here at a minium. Preferably use a dedicated file - { - pkgs, - pkgs-unstable, - ... - }: { + {pkgs, ...}: { environment.systemPackages = with pkgs; [ gnome-calculator snapshot