add cifs client side mounts
This commit is contained in:
@@ -5,18 +5,20 @@
|
||||
lib,
|
||||
...
|
||||
}: let
|
||||
cfg = config.system.flatpak;
|
||||
cfg = config.system.cifs_mounts;
|
||||
sec = config.sops.secrets;
|
||||
in {
|
||||
options.system.flatpak = {
|
||||
options.system.cifs_mounts = {
|
||||
enable = lib.mkEnableOption "enables mounting holocron fileshare on the client side";
|
||||
};
|
||||
|
||||
environment.systemPackages = with pkgs; [
|
||||
cifs-utils
|
||||
];
|
||||
|
||||
config = lib.mkIf cfg.enable {
|
||||
|
||||
environment.systemPackages = with pkgs; [
|
||||
cifs-utils
|
||||
];
|
||||
|
||||
fileSystems."/media/holocron/blake" = {
|
||||
device = "//10.10.0.10/users/blake";
|
||||
fsType = "cifs";
|
||||
|
||||
@@ -17,6 +17,7 @@
|
||||
./graphics
|
||||
./flatpak
|
||||
./secure_boot
|
||||
./cifs_mounts
|
||||
];
|
||||
|
||||
system.ssh.enable = lib.mkDefault true;
|
||||
|
||||
Reference in New Issue
Block a user