feat: add tailscale extension
This commit is contained in:
parent
8cbaf58055
commit
ff48beff2c
2 changed files with 32 additions and 0 deletions
|
|
@ -39,6 +39,18 @@
|
||||||
];
|
];
|
||||||
};
|
};
|
||||||
|
|
||||||
|
systemd.services.tailscale-set-operator = {
|
||||||
|
description = "Set Tailscale operator user";
|
||||||
|
after = [ "tailscaled.service" ];
|
||||||
|
requires = [ "tailscaled.service" ];
|
||||||
|
wantedBy = [ "multi-user.target" ];
|
||||||
|
serviceConfig.Type = "oneshot";
|
||||||
|
path = [ pkgs.tailscale ];
|
||||||
|
script = ''
|
||||||
|
tailscale set --operator=jet
|
||||||
|
'';
|
||||||
|
};
|
||||||
|
|
||||||
time.timeZone = "America/Los_Angeles";
|
time.timeZone = "America/Los_Angeles";
|
||||||
i18n.defaultLocale = "en_US.UTF-8";
|
i18n.defaultLocale = "en_US.UTF-8";
|
||||||
|
|
||||||
|
|
|
||||||
20
home.nix
20
home.nix
|
|
@ -59,6 +59,20 @@ let
|
||||||
terminal = false;
|
terminal = false;
|
||||||
categories = [ "Network" ];
|
categories = [ "Network" ];
|
||||||
};
|
};
|
||||||
|
tailscaleQsExtension = pkgs.stdenvNoCC.mkDerivation {
|
||||||
|
pname = "tailscale-gnome-qs";
|
||||||
|
version = "5";
|
||||||
|
src = pkgs.fetchzip {
|
||||||
|
url = "https://github.com/tailscale-qs/tailscale-gnome-qs/archive/refs/tags/v5.tar.gz";
|
||||||
|
sha256 = "0b9jy8pyxvpkxf3adlwq42kii14jn5g7xyxggjzg87pb5jg4zfg2";
|
||||||
|
};
|
||||||
|
dontBuild = true;
|
||||||
|
installPhase = ''
|
||||||
|
mkdir -p "$out/share/gnome-shell/extensions"
|
||||||
|
cp -r "$src/tailscale-gnome-qs@tailscale-qs.github.io" \
|
||||||
|
"$out/share/gnome-shell/extensions/tailscale-gnome-qs@tailscale-qs.github.io"
|
||||||
|
'';
|
||||||
|
};
|
||||||
nasaApodWallpaper = pkgs.writeShellApplication {
|
nasaApodWallpaper = pkgs.writeShellApplication {
|
||||||
name = "nasa-apod-wallpaper";
|
name = "nasa-apod-wallpaper";
|
||||||
runtimeInputs = [
|
runtimeInputs = [
|
||||||
|
|
@ -290,6 +304,7 @@ in
|
||||||
"system-monitor@paradoxxx.zero.gmail.com"
|
"system-monitor@paradoxxx.zero.gmail.com"
|
||||||
"clipboard-indicator@tudmotu.com"
|
"clipboard-indicator@tudmotu.com"
|
||||||
"emoji-copy@felipeftn"
|
"emoji-copy@felipeftn"
|
||||||
|
"tailscale-gnome-qs@tailscale-qs.github.io"
|
||||||
];
|
];
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
|
|
@ -747,6 +762,11 @@ in
|
||||||
];
|
];
|
||||||
};
|
};
|
||||||
|
|
||||||
|
home.file.".local/share/gnome-shell/extensions/tailscale-gnome-qs@tailscale-qs.github.io" = {
|
||||||
|
source = "${tailscaleQsExtension}/share/gnome-shell/extensions/tailscale-gnome-qs@tailscale-qs.github.io";
|
||||||
|
recursive = true;
|
||||||
|
};
|
||||||
|
|
||||||
systemd.user.services.nasa-apod-wallpaper = {
|
systemd.user.services.nasa-apod-wallpaper = {
|
||||||
Unit = {
|
Unit = {
|
||||||
Description = "Fetch NASA APOD wallpaper";
|
Description = "Fetch NASA APOD wallpaper";
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue