mirror of
https://github.com/oddlama/nix-config.git
synced 2025-10-11 07:10:39 +02:00
chore: only add agenix-rekey and nix-import-encrypted persistent folders to dev machines
This commit is contained in:
parent
2710a1be16
commit
e33476a7f5
2 changed files with 9 additions and 6 deletions
|
@ -90,16 +90,11 @@ in {
|
||||||
hideMounts = true;
|
hideMounts = true;
|
||||||
directories =
|
directories =
|
||||||
[
|
[
|
||||||
{
|
|
||||||
directory = "/var/tmp/agenix-rekey";
|
|
||||||
mode = "1777";
|
|
||||||
}
|
|
||||||
"/var/tmp/nix-import-encrypted" # Decrypted repo-secrets can be kept
|
|
||||||
"/var/lib/systemd"
|
"/var/lib/systemd"
|
||||||
"/var/log"
|
"/var/log"
|
||||||
|
"/var/spool"
|
||||||
#{ directory = "/tmp"; mode = "1777"; }
|
#{ directory = "/tmp"; mode = "1777"; }
|
||||||
#{ directory = "/var/tmp"; mode = "1777"; }
|
#{ directory = "/var/tmp"; mode = "1777"; }
|
||||||
"/var/spool"
|
|
||||||
]
|
]
|
||||||
++ optionals config.networking.wireless.iwd.enable [
|
++ optionals config.networking.wireless.iwd.enable [
|
||||||
{
|
{
|
||||||
|
|
|
@ -18,6 +18,14 @@ lib.optionalAttrs (!minimal) {
|
||||||
# Add the agenix-rekey sandbox path permanently to avoid adding myself to trusted-users
|
# Add the agenix-rekey sandbox path permanently to avoid adding myself to trusted-users
|
||||||
nix.settings.extra-sandbox-paths = ["/var/tmp/agenix-rekey"];
|
nix.settings.extra-sandbox-paths = ["/var/tmp/agenix-rekey"];
|
||||||
|
|
||||||
|
environment.persistence."/state".directories = [
|
||||||
|
{
|
||||||
|
directory = "/var/tmp/agenix-rekey";
|
||||||
|
mode = "1777";
|
||||||
|
}
|
||||||
|
"/var/tmp/nix-import-encrypted" # Decrypted repo-secrets can be kept
|
||||||
|
];
|
||||||
|
|
||||||
services.nixseparatedebuginfod = {
|
services.nixseparatedebuginfod = {
|
||||||
enable = true;
|
enable = true;
|
||||||
# We need a system-level user to be able to use nix.settings.allowed-users with it.
|
# We need a system-level user to be able to use nix.settings.allowed-users with it.
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue