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 = [ modules = [
# > Our main home-manager configuration file < # > Our main home-manager configuration file <
./home-manager/users/sstent ./home-manager/users/sstent
inputs.sops-nix.homeManagerModules.sops
]; ];
}; };
}; };

View File

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

View File

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