This commit is contained in:
2023-02-25 20:31:11 +00:00
parent f97dffa027
commit 884468f4a4
6 changed files with 7 additions and 2 deletions

View File

@@ -66,6 +66,7 @@
modules = [
# > Our main home-manager configuration file <
./home-manager/users/sstent
inputs.sops-nix.homeManagerModules.sops
];
};
};

View File

@@ -1,6 +1,8 @@
{ config, pkgs, lib, ... }:
{
xdg.configFile."beets/config.old".source = config.lib.file.mkOutOfStoreSymlink config.sops.secrets.test.path;
programs.beets = {
enable = true;
settings = {

View File

@@ -5,13 +5,14 @@
imports = [
../../global
../../beets.nix
];
home.username = "sstent";
home.homeDirectory = "/home/sstent";
home.stateVersion = "23.05";
sops = {
age.sshKeyPaths = [ "/home/sstent/.ssh/" ];
age.sshKeyPaths = [ "/home/sstent/.ssh/id_ed25519" ];
defaultSopsFile = ./secrets.yaml;
secrets.test = {
# sopsFile = ./secrets.yml.enc; # optionally define per-secret files
@@ -19,10 +20,11 @@
# %r gets replaced with a runtime directory, use %% to specify a '%'
# sign. Runtime dir is $XDG_RUNTIME_DIR on linux and $(getconf
# DARWIN_USER_TEMP_DIR) on darwin.
path = "%r/test.txt";
# path = "${config.xdg.configHome}/.ssh/test";
};
};
# xdg.configFile."beets/config.old".source = config.sops.secrets.test.path;
# Let Home Manager install and manage itself.