some config tweaks and mount points for all filez shares

This commit is contained in:
Matt Nish-Lapidus 2025-02-12 15:48:17 -05:00
parent def10c3649
commit b9f9db4a92
7 changed files with 143 additions and 93 deletions

View file

@ -62,29 +62,74 @@
};
};
# 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;
group = "users";
};
};
# fileSystems."/mnt/media" = {
# device = "//100.70.114.113";
# fsType = "cifs";
fileSystems."/mnt/filez/media" = {
device = "//100.70.114.113/Media";
fsType = "smb3";
options = let
automount_opts = "x-systemd.automount,noauto,users,x-systemd.idle-timeout=60,x-systemd.device-timeout=5s,x-systemd.mount-timeout=5s,uid=1000";
in [
"${automount_opts},credentials=/etc/nixos/smb-secrets"
];
};
fileSystems."/mnt/filez/music-production" = {
device = "//100.70.114.113/Music Production";
fsType = "smb3";
options = let
automount_opts = "x-systemd.automount,noauto,users,x-systemd.idle-timeout=60,x-systemd.device-timeout=5s,x-systemd.mount-timeout=5s,uid=1000";
in [
"${automount_opts},credentials=/etc/nixos/smb-secrets"
];
};
fileSystems."/mnt/filez/storage" = {
device = "//100.70.114.113/Storage";
fsType = "smb3";
options = let
automount_opts = "x-systemd.automount,noauto,users,x-systemd.idle-timeout=60,x-systemd.device-timeout=5s,x-systemd.mount-timeout=5s,uid=1000";
in [
"${automount_opts},credentials=/etc/nixos/smb-secrets"
];
};
fileSystems."/mnt/filez/photos" = {
device = "//100.70.114.113/Photo Storage";
fsType = "smb3";
options = let
automount_opts = "x-systemd.automount,noauto,users,x-systemd.idle-timeout=60,x-systemd.device-timeout=5s,x-systemd.mount-timeout=5s,uid=1000";
in [
"${automount_opts},credentials=/etc/nixos/smb-secrets"
];
};
# fileSystems."/mnt/beets-import" = {
# device = "//100.103.170.132/media";
# fsType = "smb3";
# 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"];
# automount_opts = "x-systemd.automount,noauto,users,x-systemd.idle-timeout=60,x-systemd.device-timeout=5s,x-systemd.mount-timeout=5s,uid=1000";
# in [
# "${automount_opts}"
# ];
# };
@ -197,18 +242,6 @@
};
};
# specialisation = {
# gpupower.configuration = {
# system.nixos.tags = [ "gpupower" ];
# hardware.nvidia = {
# prime.offload.enable = lib.mkForce false;
# prime.offload.enableOffloadCmd = lib.mkForce false;
# prime.sync.enable = lib.mkForce true;
# powerManagement.finegrained = lib.mkForce false;
# };
# };
# };
musnix = {
enable = true;
alsaSeq.enable = true;