diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml index 1a690fe..ebb65ad 100644 --- a/.pre-commit-config.yaml +++ b/.pre-commit-config.yaml @@ -32,4 +32,5 @@ repos: entry: typos language: system files: .* + exclude: .*\.(png|jpg|jpeg) stages: [commit] diff --git a/home/fish/default.nix b/home/fish/default.nix index 5a44500..a7f17a5 100644 --- a/home/fish/default.nix +++ b/home/fish/default.nix @@ -30,6 +30,9 @@ -a nixos-rebuild \ -i ${pkgs.nixos-icons}/share/icons/hicolor/scalable/apps/nix-snowflake.svg ''; + revert = '' + env --chdir $HOME/.nixconf sudo nixos-rebuild switch --flake .#$(hostname) --rollback + ''; }; }; } diff --git a/home/hyprland/default.nix b/home/hyprland/default.nix index a218731..c324495 100644 --- a/home/hyprland/default.nix +++ b/home/hyprland/default.nix @@ -20,12 +20,15 @@ lib.mkIf osConfig.programs.hyprland.enable { ]; exec-once = [ + "${pkgs.hyprpaper}/bin/hyprpaper" "${pkgs.swaynotificationcenter}/bin/swaync" "${pkgs.nextcloud-client}/bin/nextcloud --background" "${pkgs.kdeconnect}/bin/kdeconnect-indicator" "${pkgs.protonmail-bridge-gui}/bin/protonmail-bridge-gui --no-window" "${pkgs.waybar}/bin/waybar" - "${pkgs.keepassxc}/bin/keepassxc" + # keepassxc ignores themeing and doesnt show up in system tray otherwise + # Dirty solution but hey + "sleep 3 && ${pkgs.keepassxc}/bin/keepassxc" "${pkgs.wl-clipboard}/bin/wl-paste --watch ${pkgs.cliphist}/bin/cliphist store -max-items 10" (lib.mkIf config.services.hypridle.enable "${pkgs.hypridle}/bin/hypridle") ]; @@ -120,7 +123,7 @@ lib.mkIf osConfig.programs.hyprland.enable { # https://wiki.hyprland.org/Configuring/Variables/#misc misc = { - force_default_wallpaper = -1; # Set to 0 or 1 to disable the anime mascot wallpapers + force_default_wallpaper = 0; # Set to 0 or 1 to disable the anime mascot wallpapers disable_hyprland_logo = false; # If true disables the random hyprland logo / anime girl background. :( }; diff --git a/home/hyprpaper/default.nix b/home/hyprpaper/default.nix new file mode 100644 index 0000000..f6de3cc --- /dev/null +++ b/home/hyprpaper/default.nix @@ -0,0 +1,15 @@ +{ + services.hyprpaper = { + enable = true; + settings = + let + wp = ./wallpaper.jpg; + in + + { + ipc = "on"; + preload = [ "${wp}" ]; + wallpaper = [ ",${wp}" ]; + }; + }; +} diff --git a/home/hyprpaper/wallpaper.jpg b/home/hyprpaper/wallpaper.jpg new file mode 100644 index 0000000..0c8c1cc Binary files /dev/null and b/home/hyprpaper/wallpaper.jpg differ diff --git a/hosts/brontes/configuration.nix b/hosts/brontes/configuration.nix index 0dce519..519c009 100644 --- a/hosts/brontes/configuration.nix +++ b/hosts/brontes/configuration.nix @@ -73,7 +73,8 @@ "networkmanager" "wheel" "audio" - "libvirtd" + "libvirtd" # VM OPs + "dialout" # Necessary for serial port interactions ]; shell = pkgs.fish; }; diff --git a/hosts/brontes/home.nix b/hosts/brontes/home.nix index d31ebd5..11b43cf 100644 --- a/hosts/brontes/home.nix +++ b/hosts/brontes/home.nix @@ -18,6 +18,7 @@ ../../home/hyprland ../../home/hyprlock ../../home/hypridle + ../../home/hyprpaper ../../home/themes/catppuccin.nix ../../home ]; diff --git a/hosts/marr/configuration.nix b/hosts/marr/configuration.nix index 4074d41..b64e793 100644 --- a/hosts/marr/configuration.nix +++ b/hosts/marr/configuration.nix @@ -128,6 +128,7 @@ "wheel" "audio" "libvirtd" + "dialout" # Necessary for serial port interactions ]; shell = pkgs.fish; }; diff --git a/hosts/marr/home.nix b/hosts/marr/home.nix index 0c31d27..1e7e15c 100644 --- a/hosts/marr/home.nix +++ b/hosts/marr/home.nix @@ -76,6 +76,7 @@ swaybg custom.scripts.screenshot + custom.scripts.nixedit custom.scripts.set-background ]; }; diff --git a/modules/programs/firefox.nix b/modules/programs/firefox.nix index df3c509..ea28cc7 100644 --- a/modules/programs/firefox.nix +++ b/modules/programs/firefox.nix @@ -32,6 +32,7 @@ lib.mkIf config.programs.firefox.enable { # Hides the recommendations tab at about:addons "extensions.getAddons.showPane" = false; "browser.shell.checkDefaultBrowser" = false; + "privacy.clearOnShutdown.offlineApps" = true; }; policies = { PasswordManagerEnabled = false;