feat: add tailscale restart service, make wallpaper declarative, add

music player
This commit is contained in:
2026-02-09 11:26:25 -05:00
parent 15afc3d9d8
commit 7e6d382408
8 changed files with 53 additions and 12 deletions

BIN
assets/wallpaper.jpg Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 263 KiB

View File

@@ -28,6 +28,7 @@
platforms = platforms.linux; platforms = platforms.linux;
}; };
}) })
hyprlandPlugins.hyprscrolling
]; ];
settings = { settings = {
@@ -39,7 +40,7 @@
"$fileManager" = "${pkgs.uwsm}/bin/uwsm-app -- ${pkgs.pcmanfm}/bin/pcmanfm"; "$fileManager" = "${pkgs.uwsm}/bin/uwsm-app -- ${pkgs.pcmanfm}/bin/pcmanfm";
"$browser" = "${pkgs.uwsm}/bin/uwsm-app -- zen-beta"; "$browser" = "${pkgs.uwsm}/bin/uwsm-app -- zen-beta";
"$menu" = "${pkgs.walker}/bin/walker"; "$menu" = "${pkgs.walker}/bin/walker";
"$player" = "${pkgs.playerctl}/bin/playerctl --player=mpd,%any"; "$player" = "${pkgs.playerctl}/bin/playerctl";
monitor = [ monitor = [
"eDP-1,preferred,1721x1080,auto" "eDP-1,preferred,1721x1080,auto"
@@ -73,7 +74,7 @@
# Please see https://wiki.hyprland.org/Configuring/Tearing/ before you turn this on # Please see https://wiki.hyprland.org/Configuring/Tearing/ before you turn this on
allow_tearing = false; allow_tearing = false;
layout = "dwindle"; layout = "scrolling";
}; };
decoration = { decoration = {
@@ -130,9 +131,9 @@
"layersOut, 1, 1.5, linear, fade" "layersOut, 1, 1.5, linear, fade"
"fadeLayersIn, 1, 1.79, almostLinear" "fadeLayersIn, 1, 1.79, almostLinear"
"fadeLayersOut, 1, 1.39, almostLinear" "fadeLayersOut, 1, 1.39, almostLinear"
"workspaces, 1, 1.94, almostLinear, fade" "workspaces, 0, 1.94, almostLinear, fade"
"workspacesIn, 1, 1.21, almostLinear, fade" "workspacesIn, 0, 1.21, almostLinear, fade"
"workspacesOut, 1, 1.94, almostLinear, fade" "workspacesOut, 0, 1.94, almostLinear, fade"
]; ];
}; };
@@ -199,6 +200,7 @@
"$mainMod, M, exec, $terminal -e ${pkgs-unstable.gurk-rs}/bin/gurk" "$mainMod, M, exec, $terminal -e ${pkgs-unstable.gurk-rs}/bin/gurk"
"$mainMod, P, exec, $terminal -e ${pkgs.ncmpcpp}/bin/ncmpcpp" "$mainMod, P, exec, $terminal -e ${pkgs.ncmpcpp}/bin/ncmpcpp"
"$mainMod SHIFT, B, exec, $terminal -e \"$EDITOR\" /home/max/bible.txt -R" "$mainMod SHIFT, B, exec, $terminal -e \"$EDITOR\" /home/max/bible.txt -R"
"$mainMod SHIFT, R, exec, ${pkgs.hyprshot}/bin/hyprshot -m region --clipboard-only"
# "$mainMod, V, togglefloating," # "$mainMod, V, togglefloating,"
"$mainMod, space, exec, $menu" "$mainMod, space, exec, $menu"
@@ -315,6 +317,9 @@
border_size = 1.0; border_size = 1.0;
}; };
hyprscrolling = {
fullscreen_on_one_column = true;
};
}; };
}; };
}; };

View File

@@ -1,15 +1,18 @@
{ ... }: { ... }:
let
wallpaper = builtins.toString ../../../../../assets/wallpaper.jpg;
in
{ {
services.hyprpaper = { services.hyprpaper = {
enable = true; enable = true;
settings = { settings = {
spash = false; spash = false;
preload = ["~/Downloads/wallpaper.png"]; preload = [ wallpaper ];
wallpaper = [ wallpaper = [
"eDP-1,~/Downloads/wallpaper.png" "eDP-1,${wallpaper}"
"HDMI-A-1,~/Downloads/wallpaper.png" "HDMI-A-1,${wallpaper}"
]; ];
}; };
}; };

View File

@@ -6,6 +6,7 @@
./user.nix ./user.nix
./work.nix ./work.nix
./sops.nix ./sops.nix
./tailscale.nix
../common/optional/desktop/hyprland.nix ../common/optional/desktop/hyprland.nix
../common/optional/font.nix ../common/optional/font.nix
@@ -46,8 +47,6 @@
powerOnBoot = true; powerOnBoot = true;
}; };
services.tailscale.enable = true;
environment.variables = { environment.variables = {
XDG_DATA_HOME = "/home/max/.local/share"; XDG_DATA_HOME = "/home/max/.local/share";
GSK_RENDERER = "ngl"; GSK_RENDERER = "ngl";

View File

@@ -52,6 +52,9 @@
Fingerprinting = true; Fingerprinting = true;
}; };
# ID's can be collected from this command:
# nix run github:tupakkatapa/mozid -- "https://addons.mozilla.org/en-US/firefox/addon/<example>/"
ExtensionSettings = { ExtensionSettings = {
# The default behaviour of ctrl+click, shift+click, cmd+click (on macOS) and middle-click when clicking on links is to open the link in a new tab (or new window in the case of shift). # The default behaviour of ctrl+click, shift+click, cmd+click (on macOS) and middle-click when clicking on links is to open the link in a new tab (or new window in the case of shift).
# This behaviour is sometimes broken by silly developers. # This behaviour is sometimes broken by silly developers.
@@ -146,6 +149,8 @@
ublock-origin ublock-origin
proton-pass proton-pass
istilldontcareaboutcookies istilldontcareaboutcookies
better-canvas
darkreader
]; ];
}; };
}; };

View File

@@ -8,12 +8,24 @@
enable = true; enable = true;
musicDirectory = "/home/max/media/music"; musicDirectory = "/home/max/media/music";
# extraConfig = ''
# audio_output {
# type "pipewire"
# name "pipewire"
# }
# '';
extraConfig = '' extraConfig = ''
audio_output { audio_output {
type "pipewire" type "alsa"
name "pipewire" name "My ALSA"
mixer_type "hardware"
mixer_device "default"
mixer_control "PCM"
} }
''; '';
}; };
services.mpd-mpris.enable = true; services.mpd-mpris.enable = true;

View File

@@ -84,6 +84,7 @@
envExtra = '' envExtra = ''
export PER_DIRECTORY_HISTORY_TOGGLE="^H" export PER_DIRECTORY_HISTORY_TOGGLE="^H"
export HISTORY_BASE="$HOME/.local/share/directory_history"
''; '';
shellAliases = { shellAliases = {

16
host/max/tailscale.nix Normal file
View File

@@ -0,0 +1,16 @@
{ pkgs, ... }:
{
services.tailscale.enable = true;
systemd.services.tailscale-restart = {
description = "Restart Tailscale after waking up";
after = [ "suspend.target" ];
wantedBy = [ "suspend.target" ];
serviceConfig = {
Type = "simple";
ExecStart = "${pkgs.systemd}/bin/systemctl restart tailscaled.service";
};
};
}