rename file share to holocron
This commit is contained in:
@@ -4,8 +4,31 @@
|
||||
lib,
|
||||
inputs,
|
||||
...
|
||||
}:
|
||||
{
|
||||
}: {
|
||||
# base system package install list
|
||||
environment.systemPackages = with pkgs; [
|
||||
wget
|
||||
curl
|
||||
rsync
|
||||
git
|
||||
vim
|
||||
lf
|
||||
age
|
||||
fzf
|
||||
btop
|
||||
neofetch
|
||||
usbutils
|
||||
];
|
||||
|
||||
# set timezone
|
||||
time.timeZone = "America/Chicago";
|
||||
|
||||
# allow proprietary packages
|
||||
nixpkgs.config.allowUnfree = true;
|
||||
|
||||
# enable flakes
|
||||
nix.settings.experimental-features = ["nix-command" "flakes"];
|
||||
|
||||
# passwordless rebuild
|
||||
security.sudo.extraRules = [
|
||||
{
|
||||
|
||||
@@ -8,8 +8,10 @@ in
|
||||
imports =
|
||||
[ # Include the results of the hardware scan.
|
||||
./hardware-configuration.nix
|
||||
../../hosts
|
||||
../../users/blake
|
||||
../../modules/system
|
||||
../../modules/holocron
|
||||
../../modules/homelab
|
||||
../../modules/homelab/minecraft_recpro
|
||||
];
|
||||
@@ -24,7 +26,7 @@ in
|
||||
tailscale.enable = true;
|
||||
nvidia.enable = true;
|
||||
};
|
||||
fileshare = {
|
||||
holocron = {
|
||||
zfs.enable = true;
|
||||
smb.enable = true;
|
||||
nfs.enable = true;
|
||||
@@ -87,43 +89,10 @@ in
|
||||
};
|
||||
|
||||
|
||||
# set timezone
|
||||
time.timeZone = "America/Chicago";
|
||||
|
||||
hardware.bluetooth.enable = true;
|
||||
|
||||
# define shell
|
||||
programs.zsh.enable = true;
|
||||
|
||||
# package install list
|
||||
environment.systemPackages = with pkgs; [
|
||||
git
|
||||
age
|
||||
rsync
|
||||
wget
|
||||
curl
|
||||
fzf
|
||||
fd
|
||||
alejandra
|
||||
tree
|
||||
vim
|
||||
lf
|
||||
tmux
|
||||
btop
|
||||
neofetch
|
||||
usbutils
|
||||
inetutils
|
||||
iptables
|
||||
bluez
|
||||
];
|
||||
|
||||
|
||||
# allow proprietary packages
|
||||
nixpkgs.config.allowUnfree = true;
|
||||
|
||||
|
||||
# enable flakes
|
||||
nix.settings.experimental-features = [ "nix-command" "flakes" ];
|
||||
|
||||
# Open ports in the firewall.
|
||||
networking.firewall.allowedTCPPorts = [
|
||||
|
||||
@@ -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