mirror of
https://github.com/genebean/dots.git
synced 2026-03-27 09:27:44 -04:00
Replace absolute path /home
In 24.11 this is no longer allowed but is easy to grab from config
This commit is contained in:
parent
deae6df6f6
commit
bae990279c
8 changed files with 25 additions and 25 deletions
|
|
@ -1,14 +1,14 @@
|
||||||
{ pkgs, hostname, username, ... }: {
|
{ config, pkgs, hostname, username, ... }: {
|
||||||
home.packages = with pkgs; [
|
home.packages = with pkgs; [
|
||||||
home-manager
|
home-manager
|
||||||
];
|
];
|
||||||
|
|
||||||
sops = {
|
sops = {
|
||||||
age.keyFile = /home/${username}/.config/sops/age/keys.txt;
|
age.keyFile = "${config.users.users.${username}.home}/.config/sops/age/keys.txt";
|
||||||
defaultSopsFile = ../hosts/${hostname}/secrets.yaml;
|
defaultSopsFile = ../hosts/${hostname}/secrets.yaml;
|
||||||
secrets = {
|
secrets = {
|
||||||
local_git_config.path = "/home/${username}/.gitconfig-local";
|
local_git_config.path = "${config.users.users.${username}.home}/.gitconfig-local";
|
||||||
local_private_env.path = "/home/${username}/.private-env";
|
local_private_env.path = "${config.users.users.${username}.home}/.private-env";
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
|
|
||||||
|
|
@ -151,16 +151,16 @@
|
||||||
};
|
};
|
||||||
|
|
||||||
sops = {
|
sops = {
|
||||||
age.keyFile = /home/${username}/.config/sops/age/keys.txt;
|
age.keyFile = "${config.users.users.${username}.home}/.config/sops/age/keys.txt";
|
||||||
defaultSopsFile = ./secrets.yaml;
|
defaultSopsFile = ./secrets.yaml;
|
||||||
secrets = {
|
secrets = {
|
||||||
local_git_config = {
|
local_git_config = {
|
||||||
owner = "${username}";
|
owner = "${username}";
|
||||||
path = "/home/${username}/.gitconfig-local";
|
path = "${config.users.users.${username}.home}/.gitconfig-local";
|
||||||
};
|
};
|
||||||
local_private_env = {
|
local_private_env = {
|
||||||
owner = "${username}";
|
owner = "${username}";
|
||||||
path = "/home/${username}/.private-env";
|
path = "${config.users.users.${username}.home}/.private-env";
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
|
|
|
||||||
|
|
@ -76,16 +76,16 @@ in {
|
||||||
};
|
};
|
||||||
|
|
||||||
sops = {
|
sops = {
|
||||||
age.keyFile = /home/${username}/.config/sops/age/keys.txt;
|
age.keyFile = "${config.users.users.${username}.home}/.config/sops/age/keys.txt";
|
||||||
defaultSopsFile = ../secrets.yaml;
|
defaultSopsFile = ../secrets.yaml;
|
||||||
secrets = {
|
secrets = {
|
||||||
local_git_config = {
|
local_git_config = {
|
||||||
owner = "${username}";
|
owner = "${username}";
|
||||||
path = "/home/${username}/.gitconfig-local";
|
path = "${config.users.users.${username}.home}/.gitconfig-local";
|
||||||
};
|
};
|
||||||
local_private_env = {
|
local_private_env = {
|
||||||
owner = "${username}";
|
owner = "${username}";
|
||||||
path = "/home/${username}/.private-env";
|
path = "${config.users.users.${username}.home}/.private-env";
|
||||||
};
|
};
|
||||||
matrix_secrets_yaml = {
|
matrix_secrets_yaml = {
|
||||||
owner = config.users.users.matrix-synapse.name;
|
owner = config.users.users.matrix-synapse.name;
|
||||||
|
|
|
||||||
|
|
@ -1,15 +1,15 @@
|
||||||
{ username, ... }: {
|
{ config, username, ... }: {
|
||||||
sops = {
|
sops = {
|
||||||
age.keyFile = /home/${username}/.config/sops/age/keys.txt;
|
age.keyFile = "${config.users.users.${username}.home}/.config/sops/age/keys.txt";
|
||||||
defaultSopsFile = ../secrets.yaml;
|
defaultSopsFile = ../secrets.yaml;
|
||||||
secrets = {
|
secrets = {
|
||||||
local_git_config = {
|
local_git_config = {
|
||||||
owner = "${username}";
|
owner = "${username}";
|
||||||
path = "/home/${username}/.gitconfig-local";
|
path = "${config.users.users.${username}.home}/.gitconfig-local";
|
||||||
};
|
};
|
||||||
local_private_env = {
|
local_private_env = {
|
||||||
owner = "${username}";
|
owner = "${username}";
|
||||||
path = "/home/${username}/.private-env";
|
path = "${config.users.users.${username}.home}/.private-env";
|
||||||
};
|
};
|
||||||
tailscale_key = {
|
tailscale_key = {
|
||||||
restartUnits = [ "tailscaled-autoconnect.service" ];
|
restartUnits = [ "tailscaled-autoconnect.service" ];
|
||||||
|
|
|
||||||
|
|
@ -1,4 +1,4 @@
|
||||||
{ pkgs, username, ... }: {
|
{ config, pkgs, username, ... }: {
|
||||||
imports = [
|
imports = [
|
||||||
./disk-config.nix
|
./disk-config.nix
|
||||||
./hardware-configuration.nix
|
./hardware-configuration.nix
|
||||||
|
|
@ -62,16 +62,16 @@
|
||||||
};
|
};
|
||||||
|
|
||||||
sops = {
|
sops = {
|
||||||
age.keyFile = /home/${username}/.config/sops/age/keys.txt;
|
age.keyFile = "${config.users.users.${username}.home}/.config/sops/age/keys.txt";
|
||||||
defaultSopsFile = ./secrets.yaml;
|
defaultSopsFile = ./secrets.yaml;
|
||||||
secrets = {
|
secrets = {
|
||||||
local_git_config = {
|
local_git_config = {
|
||||||
owner = "${username}";
|
owner = "${username}";
|
||||||
path = "/home/${username}/.gitconfig-local";
|
path = "${config.users.users.${username}.home}/.gitconfig-local";
|
||||||
};
|
};
|
||||||
local_private_env = {
|
local_private_env = {
|
||||||
owner = "${username}";
|
owner = "${username}";
|
||||||
path = "/home/${username}/.private-env";
|
path = "${config.users.users.${username}.home}/.private-env";
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
|
|
|
||||||
|
|
@ -486,16 +486,16 @@ in {
|
||||||
};
|
};
|
||||||
|
|
||||||
sops = {
|
sops = {
|
||||||
age.keyFile = /home/${username}/.config/sops/age/keys.txt;
|
age.keyFile = "${config.users.users.${username}.home}/.config/sops/age/keys.txt";
|
||||||
defaultSopsFile = ./secrets.yaml;
|
defaultSopsFile = ./secrets.yaml;
|
||||||
secrets = {
|
secrets = {
|
||||||
local_git_config = {
|
local_git_config = {
|
||||||
owner = "${username}";
|
owner = "${username}";
|
||||||
path = "/home/${username}/.gitconfig-local";
|
path = "${config.users.users.${username}.home}/.gitconfig-local";
|
||||||
};
|
};
|
||||||
local_private_env = {
|
local_private_env = {
|
||||||
owner = "${username}";
|
owner = "${username}";
|
||||||
path = "/home/${username}/.private-env";
|
path = "${config.users.users.${username}.home}/.private-env";
|
||||||
};
|
};
|
||||||
mealie.mode = "0444";
|
mealie.mode = "0444";
|
||||||
nextcloud_admin_pass.owner = config.users.users.nextcloud.name;
|
nextcloud_admin_pass.owner = config.users.users.nextcloud.name;
|
||||||
|
|
|
||||||
|
|
@ -125,16 +125,16 @@
|
||||||
};
|
};
|
||||||
|
|
||||||
sops = {
|
sops = {
|
||||||
age.keyFile = /home/${username}/.config/sops/age/keys.txt;
|
age.keyFile = "${config.users.users.${username}.home}/.config/sops/age/keys.txt";
|
||||||
defaultSopsFile = ./secrets.yaml;
|
defaultSopsFile = ./secrets.yaml;
|
||||||
secrets = {
|
secrets = {
|
||||||
local_git_config = {
|
local_git_config = {
|
||||||
owner = "${username}";
|
owner = "${username}";
|
||||||
path = "/home/${username}/.gitconfig-local";
|
path = "${config.users.users.${username}.home}/.gitconfig-local";
|
||||||
};
|
};
|
||||||
local_private_env = {
|
local_private_env = {
|
||||||
owner = "${username}";
|
owner = "${username}";
|
||||||
path = "/home/${username}/.private-env";
|
path = "${config.users.users.${username}.home}/.private-env";
|
||||||
};
|
};
|
||||||
tailscale_key = {
|
tailscale_key = {
|
||||||
restartUnits = [ "tailscaled-autoconnect.service" ];
|
restartUnits = [ "tailscaled-autoconnect.service" ];
|
||||||
|
|
|
||||||
|
|
@ -20,7 +20,7 @@
|
||||||
};
|
};
|
||||||
|
|
||||||
sops = {
|
sops = {
|
||||||
age.keyFile = /home/${username}/.config/sops/age/keys.txt;
|
age.keyFile = "${config.users.users.${username}.home}/.config/sops/age/keys.txt";
|
||||||
secrets.gandi_api.sopsFile = ../secrets.yaml;
|
secrets.gandi_api.sopsFile = ../secrets.yaml;
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue