From 8ed3dfc9ebc52a50c3e6d4623204847822944422 Mon Sep 17 00:00:00 2001 From: Franck Cuny Date: Sat, 12 Feb 2022 13:47:59 -0800 Subject: move configurations and modules around Sorry, this is a mess, hopefully the last one. --- users/fcuny/desktop/default.nix | 15 +++++++++++++++ users/fcuny/desktop/gtk.nix | 4 ++-- users/fcuny/desktop/pass.nix | 8 -------- users/fcuny/desktop/trust/default.nix | 10 ++++++++++ users/fcuny/desktop/trust/git.nix | 8 ++++++++ users/fcuny/desktop/trust/keyring.nix | 5 +++++ users/fcuny/desktop/trust/pass.nix | 8 ++++++++ users/fcuny/desktop/trust/pgp.nix | 14 ++++++++++++++ 8 files changed, 62 insertions(+), 10 deletions(-) delete mode 100644 users/fcuny/desktop/pass.nix create mode 100644 users/fcuny/desktop/trust/default.nix create mode 100644 users/fcuny/desktop/trust/git.nix create mode 100644 users/fcuny/desktop/trust/keyring.nix create mode 100644 users/fcuny/desktop/trust/pass.nix create mode 100644 users/fcuny/desktop/trust/pgp.nix (limited to 'users') diff --git a/users/fcuny/desktop/default.nix b/users/fcuny/desktop/default.nix index 9f0bcf3..3a1e21a 100644 --- a/users/fcuny/desktop/default.nix +++ b/users/fcuny/desktop/default.nix @@ -9,6 +9,7 @@ ./terminal.nix ./gtk.nix ./xdg.nix + ./trust ]; home.packages = [ @@ -17,4 +18,18 @@ pkgs.gnome3.nautilus pkgs.transmission-remote-gtk ]; + + environment = { + sessionVariables = { + TERMINAL = [ "alacritty" ]; + TERM = [ "xterm-256color" ]; + }; + + # Activate home-manager environment, if not already enabled + loginShellInit = '' + [ -d "$HOME/.nix-profile" ] || /nix/var/nix/profiles/per-user/$USER/home-manager/activate &> /dev/null + ''; + homeBinInPath = true; + localBinInPath = true; + }; } diff --git a/users/fcuny/desktop/gtk.nix b/users/fcuny/desktop/gtk.nix index 492c331..8bc11a2 100644 --- a/users/fcuny/desktop/gtk.nix +++ b/users/fcuny/desktop/gtk.nix @@ -16,7 +16,6 @@ gtk2 = { extraConfig = '' - gtk-application-prefer-dark-theme = true gtk-xft-antialias = 1 gtk-xft-hinting = 1 gtk-xft-hintstyle = "hintslight" @@ -26,11 +25,12 @@ gtk3 = { extraConfig = { - gtk-application-prefer-dark-theme = true; gtk-xft-antialias = 1; gtk-xft-hinting = 1; gtk-xft-hintstyle = "hintslight"; }; }; }; + + services.gvfs.enable = true; } diff --git a/users/fcuny/desktop/pass.nix b/users/fcuny/desktop/pass.nix deleted file mode 100644 index d430ec8..0000000 --- a/users/fcuny/desktop/pass.nix +++ /dev/null @@ -1,8 +0,0 @@ -{ pkgs, config, ... }: - -{ - programs.password-store.enable = true; - - programs.password-store.settings.PASSWORD_STORE_DIR = - "${config.xdg.dataHome}/password-store"; -} diff --git a/users/fcuny/desktop/trust/default.nix b/users/fcuny/desktop/trust/default.nix new file mode 100644 index 0000000..d881926 --- /dev/null +++ b/users/fcuny/desktop/trust/default.nix @@ -0,0 +1,10 @@ +{ config, lib, pkgs, ... }: + +{ + imports = [ + ./git.nix + ./keyring.nix + ./pass.nix + ./pgp.nix + ]; +} diff --git a/users/fcuny/desktop/trust/git.nix b/users/fcuny/desktop/trust/git.nix new file mode 100644 index 0000000..52607a3 --- /dev/null +++ b/users/fcuny/desktop/trust/git.nix @@ -0,0 +1,8 @@ +{ + programs.git = { + signing = { + signByDefault = true; + key = "23348B57F01D4234B5CFBA0923208AC01EB6EEA1"; + }; + }; +} diff --git a/users/fcuny/desktop/trust/keyring.nix b/users/fcuny/desktop/trust/keyring.nix new file mode 100644 index 0000000..222448a --- /dev/null +++ b/users/fcuny/desktop/trust/keyring.nix @@ -0,0 +1,5 @@ +{ config, lib, pkgs, ... }: + +{ + services.gnome.gnome-keyring.enable = true; +} diff --git a/users/fcuny/desktop/trust/pass.nix b/users/fcuny/desktop/trust/pass.nix new file mode 100644 index 0000000..d430ec8 --- /dev/null +++ b/users/fcuny/desktop/trust/pass.nix @@ -0,0 +1,8 @@ +{ pkgs, config, ... }: + +{ + programs.password-store.enable = true; + + programs.password-store.settings.PASSWORD_STORE_DIR = + "${config.xdg.dataHome}/password-store"; +} diff --git a/users/fcuny/desktop/trust/pgp.nix b/users/fcuny/desktop/trust/pgp.nix new file mode 100644 index 0000000..0d59837 --- /dev/null +++ b/users/fcuny/desktop/trust/pgp.nix @@ -0,0 +1,14 @@ +{ config, lib, pkgs, ... }: + +{ + services.gpg-agent = { + enable = true; + enableSshSupport = true; + pinentryFlavor = "gnome3"; + }; + + programs.gpg = { + enable = true; + }; +} + -- cgit 1.4.1