- Enable desktop system in flake with all modules imported in flake file, and arguments for those modules passed via specialArgs. - Disable fileSystems mounts for iscsi. - Refactor smb.nix to define all working shares. (TODO: Figure out how to enable a subset of shares by arguments passed to module). - Roll cloudflare_stream.token. - Extract all module calls out of configuration.nix for desktop. Remove configuration nodes duplicated in system.nix. - Fix dependence on deprecated "sys" subattributes in desktop-environment.nix. - Remove iscsi configuration from filesystems.nix. Using iscsi module instead. - Update terminal-environment.nix to use git attrset where appropriate. - Hardcode wallpaper file in theme.nix. -
61 lines
1.7 KiB
Nix
61 lines
1.7 KiB
Nix
{ smb, sys, pkgs, ... }: {
|
|
|
|
sops.secrets."smb" = {
|
|
sopsFile = ./smb.secrets;
|
|
format = "binary";
|
|
key = "";
|
|
mode = "0440";
|
|
owner = sys.username;
|
|
};
|
|
|
|
environment.systemPackages = with pkgs; [ cifs-utils ];
|
|
fileSystems."movies" = {
|
|
mountPoint = "/mnt/movies";
|
|
device = "//192.168.1.12/Movies";
|
|
fsType = "cifs";
|
|
options = [ smb.permissions_opts smb.automount_opts ];
|
|
};
|
|
fileSystems."music" = {
|
|
mountPoint = "/mnt/music";
|
|
device = "//192.168.1.12/Music";
|
|
fsType = "cifs";
|
|
options = [ smb.permissions_opts smb.automount_opts ];
|
|
};
|
|
fileSystems."shows" = {
|
|
mountPoint = "/mnt/shows";
|
|
device = "//192.168.1.12/Shows";
|
|
fsType = "cifs";
|
|
options = [ smb.permissions_opts smb.automount_opts ];
|
|
};
|
|
fileSystems."av" = {
|
|
mountPoint = "/mnt/av";
|
|
device = "//192.168.1.12/AV";
|
|
fsType = "cifs";
|
|
options = [ smb.permissions_opts smb.automount_opts ];
|
|
};
|
|
fileSystems."printing" = {
|
|
mountPoint = "/mnt/3dprinting";
|
|
device = "//192.168.1.12/3DPrinting";
|
|
fsType = "cifs";
|
|
options = [ smb.permissions_opts smb.automount_opts ];
|
|
};
|
|
fileSystems."books" = {
|
|
mountPoint = "/mnt/books";
|
|
device = "//192.168.1.12/Text";
|
|
fsType = "cifs";
|
|
options = [ smb.permissions_opts smb.automount_opts ];
|
|
};
|
|
fileSystems."torrenting" = {
|
|
mountPoint = "/mnt/torrenting";
|
|
device = "//192.168.1.12/Torrenting";
|
|
fsType = "cifs";
|
|
options = [ smb.permissions_opts smb.automount_opts ];
|
|
};
|
|
fileSystems."archive" = {
|
|
mountPoint = "/mnt/archive";
|
|
device = "//192.168.1.12/Archive";
|
|
fsType = "cifs";
|
|
options = [ smb.permissions_opts smb.automount_opts ];
|
|
};
|
|
}
|