home-manager: split aerc.nix out of default.nix

This commit is contained in:
2022-10-21 09:15:08 -07:00
parent 0e63cd4e11
commit e4c0a0d468
3 changed files with 16 additions and 10 deletions

View File

@@ -0,0 +1,14 @@
# Terminal UI mail client
{ config, ... }:
{
sops.secrets."aerc_accounts" = {
owner = config.users.users.colin.name;
sopsFile = ../../../../secrets/universal/aerc_accounts.conf;
format = "binary";
};
home-manager.users.colin = let sysconfig = config; in { config, ... }: {
# aerc TUI mail client
xdg.configFile."aerc/accounts.conf".source =
config.lib.file.mkOutOfStoreSymlink sysconfig.sops.secrets.aerc_accounts.path;
};
}

View File

@@ -20,6 +20,7 @@ let
in
{
imports = [
./aerc.nix
./git.nix
./kitty.nix
./librewolf.nix
@@ -54,12 +55,6 @@ in
};
config = {
sops.secrets."aerc_accounts" = {
owner = config.users.users.colin.name;
sopsFile = ../../../../secrets/universal/aerc_accounts.conf;
format = "binary";
};
sane.impermanence.home-dirs = [
"archive"
"dev"
@@ -157,10 +152,6 @@ in
home.file."Videos/servo-incomplete".source = config.lib.file.mkOutOfStoreSymlink "/mnt/servo-media/incomplete";
home.file."Music/servo".source = config.lib.file.mkOutOfStoreSymlink "/mnt/servo-media/Music";
# aerc TUI mail client
xdg.configFile."aerc/accounts.conf".source =
config.lib.file.mkOutOfStoreSymlink sysconfig.sops.secrets.aerc_accounts.path;
# make Discord usable even when client is "outdated"
xdg.configFile."discord/settings.json".text = ''
{

View File

@@ -1,5 +1,6 @@
{ config, ... }:
{
# TODO: this should only be shipped on gui platforms
sops.secrets."sublime_music_config" = {
owner = config.users.users.colin.name;
sopsFile = ../../../../secrets/universal/sublime_music_config.json.bin;