rename file share to holocron
This commit is contained in:
@@ -4,8 +4,31 @@
|
|||||||
lib,
|
lib,
|
||||||
inputs,
|
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
|
# passwordless rebuild
|
||||||
security.sudo.extraRules = [
|
security.sudo.extraRules = [
|
||||||
{
|
{
|
||||||
|
|||||||
@@ -8,8 +8,10 @@ in
|
|||||||
imports =
|
imports =
|
||||||
[ # Include the results of the hardware scan.
|
[ # Include the results of the hardware scan.
|
||||||
./hardware-configuration.nix
|
./hardware-configuration.nix
|
||||||
|
../../hosts
|
||||||
../../users/blake
|
../../users/blake
|
||||||
../../modules/system
|
../../modules/system
|
||||||
|
../../modules/holocron
|
||||||
../../modules/homelab
|
../../modules/homelab
|
||||||
../../modules/homelab/minecraft_recpro
|
../../modules/homelab/minecraft_recpro
|
||||||
];
|
];
|
||||||
@@ -24,7 +26,7 @@ in
|
|||||||
tailscale.enable = true;
|
tailscale.enable = true;
|
||||||
nvidia.enable = true;
|
nvidia.enable = true;
|
||||||
};
|
};
|
||||||
fileshare = {
|
holocron = {
|
||||||
zfs.enable = true;
|
zfs.enable = true;
|
||||||
smb.enable = true;
|
smb.enable = true;
|
||||||
nfs.enable = true;
|
nfs.enable = true;
|
||||||
@@ -87,43 +89,10 @@ in
|
|||||||
};
|
};
|
||||||
|
|
||||||
|
|
||||||
# set timezone
|
|
||||||
time.timeZone = "America/Chicago";
|
|
||||||
|
|
||||||
hardware.bluetooth.enable = true;
|
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.
|
# Open ports in the firewall.
|
||||||
networking.firewall.allowedTCPPorts = [
|
networking.firewall.allowedTCPPorts = [
|
||||||
|
|||||||
@@ -6,13 +6,13 @@
|
|||||||
}:
|
}:
|
||||||
# define nfs exports
|
# define nfs exports
|
||||||
let
|
let
|
||||||
cfg = config.fileshare.nfs;
|
cfg = config.holocron.nfs;
|
||||||
nfs_exports = ''
|
nfs_exports = ''
|
||||||
/holocron/media *(ro,sync,no_subtree_check)
|
/holocron/media *(ro,sync,no_subtree_check)
|
||||||
'';
|
'';
|
||||||
#/holocron/vault *(rw,sync,no_subtree_check,no_root_squash)
|
#/holocron/vault *(rw,sync,no_subtree_check,no_root_squash)
|
||||||
in {
|
in {
|
||||||
options.fileshare.nfs = {
|
options.holocron.nfs = {
|
||||||
enable = lib.mkEnableOption "enables nfs";
|
enable = lib.mkEnableOption "enables nfs";
|
||||||
};
|
};
|
||||||
|
|
||||||
@@ -6,7 +6,7 @@
|
|||||||
}:
|
}:
|
||||||
# define smb shares
|
# define smb shares
|
||||||
let
|
let
|
||||||
cfg = config.fileshare.smb;
|
cfg = config.holocron.smb;
|
||||||
smb_shares = {
|
smb_shares = {
|
||||||
vault = {
|
vault = {
|
||||||
path = "/holocron/vault";
|
path = "/holocron/vault";
|
||||||
@@ -22,7 +22,7 @@ let
|
|||||||
};
|
};
|
||||||
};
|
};
|
||||||
in {
|
in {
|
||||||
options.fileshare.smb = {
|
options.holocron.smb = {
|
||||||
enable = lib.mkEnableOption "enables smb";
|
enable = lib.mkEnableOption "enables smb";
|
||||||
};
|
};
|
||||||
|
|
||||||
@@ -4,9 +4,9 @@
|
|||||||
lib,
|
lib,
|
||||||
...
|
...
|
||||||
}: let
|
}: let
|
||||||
cfg = config.fileshare.zfs;
|
cfg = config.holocron.zfs;
|
||||||
in {
|
in {
|
||||||
options.fileshare.zfs = {
|
options.holocron.zfs = {
|
||||||
enable = lib.mkEnableOption "enables zfs";
|
enable = lib.mkEnableOption "enables zfs";
|
||||||
};
|
};
|
||||||
|
|
||||||
@@ -41,7 +41,7 @@ in
|
|||||||
|
|
||||||
# the order determines the order in glance :3
|
# the order determines the order in glance :3
|
||||||
imports = [
|
imports = [
|
||||||
./fileshare
|
./glance
|
||||||
./caddy
|
./caddy
|
||||||
./home/zigbee2mqtt
|
./home/zigbee2mqtt
|
||||||
./vaultwarden
|
./vaultwarden
|
||||||
@@ -59,7 +59,6 @@ in
|
|||||||
./arr/flaresolverr
|
./arr/flaresolverr
|
||||||
./home/mosquitto
|
./home/mosquitto
|
||||||
./uptime-kuma
|
./uptime-kuma
|
||||||
./glance
|
|
||||||
];
|
];
|
||||||
|
|
||||||
config = lib.mkIf cfg.enable {
|
config = lib.mkIf cfg.enable {
|
||||||
|
|||||||
@@ -148,7 +148,7 @@ in
|
|||||||
};
|
};
|
||||||
|
|
||||||
# install borg binary
|
# install borg binary
|
||||||
environment.systemPackages = [ pkgs.borgbackup ];
|
environment.systemPackages = with pkgs; [ borgbackup ];
|
||||||
|
|
||||||
# declare secret for repo password
|
# declare secret for repo password
|
||||||
sops.secrets = {
|
sops.secrets = {
|
||||||
|
|||||||
Reference in New Issue
Block a user