rename file share to holocron
This commit is contained in:
@@ -6,13 +6,13 @@
|
||||
}:
|
||||
# define nfs exports
|
||||
let
|
||||
cfg = config.fileshare.nfs;
|
||||
cfg = config.holocron.nfs;
|
||||
nfs_exports = ''
|
||||
/holocron/media *(ro,sync,no_subtree_check)
|
||||
'';
|
||||
#/holocron/vault *(rw,sync,no_subtree_check,no_root_squash)
|
||||
in {
|
||||
options.fileshare.nfs = {
|
||||
options.holocron.nfs = {
|
||||
enable = lib.mkEnableOption "enables nfs";
|
||||
};
|
||||
|
||||
@@ -6,7 +6,7 @@
|
||||
}:
|
||||
# define smb shares
|
||||
let
|
||||
cfg = config.fileshare.smb;
|
||||
cfg = config.holocron.smb;
|
||||
smb_shares = {
|
||||
vault = {
|
||||
path = "/holocron/vault";
|
||||
@@ -22,7 +22,7 @@ let
|
||||
};
|
||||
};
|
||||
in {
|
||||
options.fileshare.smb = {
|
||||
options.holocron.smb = {
|
||||
enable = lib.mkEnableOption "enables smb";
|
||||
};
|
||||
|
||||
@@ -4,9 +4,9 @@
|
||||
lib,
|
||||
...
|
||||
}: let
|
||||
cfg = config.fileshare.zfs;
|
||||
cfg = config.holocron.zfs;
|
||||
in {
|
||||
options.fileshare.zfs = {
|
||||
options.holocron.zfs = {
|
||||
enable = lib.mkEnableOption "enables zfs";
|
||||
};
|
||||
|
||||
@@ -41,7 +41,7 @@ in
|
||||
|
||||
# the order determines the order in glance :3
|
||||
imports = [
|
||||
./fileshare
|
||||
./glance
|
||||
./caddy
|
||||
./home/zigbee2mqtt
|
||||
./vaultwarden
|
||||
@@ -59,7 +59,6 @@ in
|
||||
./arr/flaresolverr
|
||||
./home/mosquitto
|
||||
./uptime-kuma
|
||||
./glance
|
||||
];
|
||||
|
||||
config = lib.mkIf cfg.enable {
|
||||
|
||||
@@ -148,7 +148,7 @@ in
|
||||
};
|
||||
|
||||
# install borg binary
|
||||
environment.systemPackages = [ pkgs.borgbackup ];
|
||||
environment.systemPackages = with pkgs; [ borgbackup ];
|
||||
|
||||
# declare secret for repo password
|
||||
sops.secrets = {
|
||||
|
||||
Reference in New Issue
Block a user