Music + GPG agent forwarding + all sorts.

This commit is contained in:
kat witch 2021-03-09 00:45:18 +00:00
parent 2c6230dd63
commit c548add318
No known key found for this signature in database
GPG key ID: 1B477797DCA5EC72
24 changed files with 525 additions and 56 deletions

View file

@ -8,5 +8,6 @@
./nextcloud.nix
./gpg.nix
./gtk.nix
./music.nix
];
}

View file

@ -5,6 +5,7 @@ let
"app.update.auto" = false;
"identity.fxaccounts.account.device.name" = superConfig.networking.hostName;
"signon.rememberSignons" = false;
"browser.download.lastDir" = "/home/kat/downloads";
"browser.urlbar.placeholderName" = "DuckDuckGo";
"toolkit.legacyUserProfileCustomizations.stylesheets" = true;
"identity.sync.tokenserver.uri" =

View file

@ -2,9 +2,22 @@
{
config = lib.mkIf config.deploy.profile.gui {
home.file.".gnupg/gpg-agent.conf".text = ''
enable-ssh-support
pinentry-program ${pkgs.pinentry.gtk2}/bin/pinentry
'';
home.sessionVariables = {
SSH_AUTH_SOCK =
"\${SSH_AUTH_SOCK:-$(${pkgs.gnupg}/bin/gpgconf --list-dirs agent-ssh-socket)}";
};
services.gpg-agent = {
enable = true;
enableExtraSocket = true;
enableSshSupport = false;
pinentryFlavor = "gtk2";
extraConfig = lib.mkMerge [
"auto-expand-secmem 0x30000" # otherwise "gpg: public key decryption failed: Cannot allocate memory"
"pinentry-timeout 30"
"allow-loopback-pinentry"
"enable-ssh-support"
"no-allow-external-cache"
];
};
};
}

View file

@ -8,7 +8,7 @@
settings = {
font_size = witch.style.font.size;
background = witch.style.base16.color0;
background_opacity = "0.7";
background_opacity = "0.9";
foreground = witch.style.base16.color7;
selection_background = witch.style.base16.color7;
selection_foreground = witch.style.base16.color0;

View file

@ -0,0 +1,35 @@
{ config, lib, pkgs, witch, ... }:
{
config = lib.mkIf config.deploy.profile.gui {
programs.ncmpcpp = {
enable = true;
mpdMusicDir = "/home/kat/music";
};
programs.beets = {
enable = true;
package = pkgs.unstable.beets;
settings = {
directory = "~/music";
library = "~/.local/share/beets.db";
plugins = lib.concatStringsSep " " [
"mpdstats"
"mpdupdate"
"duplicates"
"chroma"
];
};
};
services.mpd = {
enable = true;
network.startWhenNeeded = true;
musicDirectory = "/home/kat/music";
extraConfig = ''
audio_output {
type "pulse"
name "speaker"
}
'';
};
};
}