feat: add tailscale restart service, make wallpaper declarative, add
music player
This commit is contained in:
@@ -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";
|
||||
|
||||
@@ -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
|
||||
];
|
||||
};
|
||||
};
|
||||
|
||||
@@ -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;
|
||||
|
||||
@@ -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
16
host/max/tailscale.nix
Normal 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";
|
||||
};
|
||||
};
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user