diff options
author | Franck Cuny <franck@fcuny.net> | 2023-12-09 09:15:23 -0800 |
---|---|---|
committer | Franck Cuny <franck@fcuny.net> | 2023-12-09 09:15:23 -0800 |
commit | 543fcc38c9c48349d6988b1ace119f0cef2d6efa (patch) | |
tree | ae8174b09797fd19e365f60bf25a9d20b222c855 /home/profiles/workstation.nix | |
parent | install kind / configure the dock (diff) | |
download | world-543fcc38c9c48349d6988b1ace119f0cef2d6efa.tar.gz |
delete even more unused configurations
Diffstat (limited to 'home/profiles/workstation.nix')
-rw-r--r-- | home/profiles/workstation.nix | 115 |
1 files changed, 0 insertions, 115 deletions
diff --git a/home/profiles/workstation.nix b/home/profiles/workstation.nix deleted file mode 100644 index 7fa76aa..0000000 --- a/home/profiles/workstation.nix +++ /dev/null @@ -1,115 +0,0 @@ -{ config, lib, pkgs, ... }: -let - restic-nas = pkgs.writeShellApplication - { - name = "restic-nas"; - runtimeInputs = [ pkgs.restic pkgs.tailscale pkgs.jq ]; - text = '' - NAS=$(tailscale status --json | jq -r '.Peer | map(select(.HostName == "tahoe"))[0].TailscaleIPs[0]') - - RESTIC_REPOSITORY="sftp:''${NAS}:/$(hostname)" - export RESTIC_REPOSITORY - export RESTIC_PASSWORD_FILE=/run/agenix/restic/repo-users - - sudo -E restic -o sftp.command="ssh backup@''${NAS} -i /run/agenix/restic/ssh-key -s sftp" "$@" - ''; - }; - - album-to-nas = pkgs.writeShellApplication { - name = "album-to-nas"; - runtimeInputs = [ pkgs.jq pkgs.tailscale ]; - text = '' - ALBUM_PATH="$1" - - NAS=$(tailscale status --json | jq -r '.Peer | map(select(.HostName == "tahoe"))[0].TailscaleIPs[0]') - - ssh "$NAS" mkdir -p ~/import/music - scp "$ALBUM_PATH" "$NAS:~/import/music/album.zip" - ssh "$NAS" bc-to-beet ~/import/music/album.zip - ''; - }; -in -{ - imports = [ - ./dev.nix - ./emacs.nix - ./alacritty.nix - ./tmux.nix - ./firefox.nix - ./yubikey.nix - ./ytdlp.nix - ]; - - home.packages = with pkgs; [ - # media - gnome3.eog - gnome3.evince - sublime-music - vlc - yt-dlp - - passage - tree - - element-desktop-wayland - - # scanning - tesseract - imagemagick - exiftool - sane-airscan - - transmission-remote-gtk - - # custom tools - album-to-nas - restic-nas - - # tools from external repositories - # x509-info - # gh-ssh-keys - # masked-emails - ]; - - programs.feh.enable = true; - programs.mpv = { - enable = true; - config = { - sub-auto = "fuzzy"; - vo = "gpu"; - hwdec = "auto-safe"; - gpu-context = "wayland"; - audio-display = "no"; - cache-pause = "no"; - cache = "yes"; - mute = "no"; - osc = "yes"; - screenshot-directory = "~/documents/screenshots/mpv-screenshots/"; - screenshot-format = "png"; - }; - scripts = lib.attrVals [ "sponsorblock" ] pkgs.mpvScripts; - }; - - services.gammastep = { - enable = true; - #TODO: this needs to come from locale.nix - latitude = 37.8715; - longitude = -122.273; - temperature = { - day = 5000; - night = 3700; - }; - }; - - home.sessionVariables = { - PASSAGE_DIR = "${config.xdg.dataHome}/passage/store"; - PASSAGE_IDENTITIES_FILE = "${config.xdg.dataHome}/passage/identities"; - # for now I have to default to rage, as the version of age is - # not recent enough to work with keys generated by - # age-plugin-yubikey - PASSAGE_AGE = "${pkgs.rage}/bin/rage"; - }; - - # enable bluetooth - services.blueman-applet.enable = true; -} |