commented filesystem test for now
This commit is contained in:
parent
7685f865f8
commit
def10c3649
1 changed files with 21 additions and 21 deletions
|
@ -62,30 +62,30 @@
|
|||
};
|
||||
};
|
||||
|
||||
sops = {
|
||||
age.keyFile = "/home/emenel/.config/sops/age/keys.txt"; # must have no password!
|
||||
defaultSopsFile = ./secrets.yaml;
|
||||
secrets = {
|
||||
filez = {};
|
||||
};
|
||||
templates."smb-secrets".content = ''
|
||||
username=admin
|
||||
password=${config.sops.placeholder.filez}
|
||||
'';
|
||||
};
|
||||
# sops = {
|
||||
# age.keyFile = "/home/emenel/.config/sops/age/keys.txt"; # must have no password!
|
||||
# defaultSopsFile = ./secrets.yaml;
|
||||
# secrets = {
|
||||
# filez = {};
|
||||
# };
|
||||
# templates."smb-secrets".content = ''
|
||||
# username=admin
|
||||
# password=${config.sops.placeholder.filez}
|
||||
# '';
|
||||
# };
|
||||
|
||||
|
||||
environment.etc = {
|
||||
"nixos/smb-secrets".source = config.sops.templates."smb-secrets".path;
|
||||
};
|
||||
# environment.etc = {
|
||||
# "nixos/smb-secrets".source = config.sops.templates."smb-secrets".path;
|
||||
# };
|
||||
|
||||
fileSystems."/mnt/media" = {
|
||||
device = "//100.70.114.113";
|
||||
fsType = "cifs";
|
||||
options = let
|
||||
automount_opts = "x-systemd.automount,noauto,x-systemd.idle-timeout=60,x-systemd.device-timeout=5s,x-systemd.mount-timeout=5s";
|
||||
in ["${automount_opts},credentials=/etc/nixos/smb-secrets"];
|
||||
};
|
||||
# fileSystems."/mnt/media" = {
|
||||
# device = "//100.70.114.113";
|
||||
# fsType = "cifs";
|
||||
# options = let
|
||||
# automount_opts = "x-systemd.automount,noauto,x-systemd.idle-timeout=60,x-systemd.device-timeout=5s,x-systemd.mount-timeout=5s";
|
||||
# in ["${automount_opts},credentials=/etc/nixos/smb-secrets"];
|
||||
# };
|
||||
|
||||
|
||||
environment.systemPackages = with pkgs; [
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue