home-manager: split aerc.nix
out of default.nix
This commit is contained in:
14
modules/universal/env/home-manager/aerc.nix
vendored
Normal file
14
modules/universal/env/home-manager/aerc.nix
vendored
Normal 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;
|
||||
};
|
||||
}
|
11
modules/universal/env/home-manager/default.nix
vendored
11
modules/universal/env/home-manager/default.nix
vendored
@@ -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 = ''
|
||||
{
|
||||
|
@@ -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;
|
||||
|
Reference in New Issue
Block a user