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

View File

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

View File

@@ -52,6 +52,9 @@
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 = {
# 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.
@@ -146,6 +149,8 @@
ublock-origin
proton-pass
istilldontcareaboutcookies
better-canvas
darkreader
];
};
};

View File

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

View File

@@ -84,6 +84,7 @@
envExtra = ''
export PER_DIRECTORY_HISTORY_TOGGLE="^H"
export HISTORY_BASE="$HOME/.local/share/directory_history"
'';
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";
};
};
}