29 lines
No EOL
787 B
Nix
29 lines
No EOL
787 B
Nix
{ ... }:
|
|
{
|
|
flake.modules.nixos.controlstation =
|
|
{ pkgs, config, ... }:
|
|
let
|
|
mount_opts = "x-systemd.automount,iocharset=utf8,rw,noauto,nofail,credentials=${config.age.secrets.samba.path},uid=1000,gid=100";
|
|
in
|
|
{
|
|
environment.systemPackages = [ pkgs.cifs-utils ];
|
|
|
|
age.secrets.samba.file = ../../../secrets/samba.age;
|
|
|
|
fileSystems."/home/aqua/Storage" = {
|
|
device = "//192.168.0.80/aqua";
|
|
fsType = "cifs";
|
|
options = [ "${mount_opts}" ];
|
|
};
|
|
fileSystems."/home/aqua/Public" = {
|
|
device = "//192.168.0.80/dropbox";
|
|
fsType = "cifs";
|
|
options = [ "${mount_opts}" ];
|
|
};
|
|
fileSystems."/home/aqua/MediaShare" = {
|
|
device = "//192.168.0.80/media";
|
|
fsType = "cifs";
|
|
options = [ "${mount_opts}" ];
|
|
};
|
|
};
|
|
} |