add homebox

This commit is contained in:
TheWanderingCrow 2025-01-20 20:05:02 -05:00
parent bb1f458a9c
commit c1fdb6faf8
6 changed files with 62 additions and 50 deletions

View file

@ -17,66 +17,65 @@
};
programs.starship = let
raisin_black = "#262932";
blood_red = "#710000";
rich_lemon = "#FDF500";
keppel = "#1AC5B0";
electric_blue = "#36EBF3";
blushing_purple = "#9370DB";
frostbite = "#E455AE";
steel_pink = "#CB1DCD";
pale_silver = "#D1C5C0";
raisin_black = "#262932";
blood_red = "#710000";
rich_lemon = "#FDF500";
keppel = "#1AC5B0";
electric_blue = "#36EBF3";
blushing_purple = "#9370DB";
frostbite = "#E455AE";
steel_pink = "#CB1DCD";
pale_silver = "#D1C5C0";
in {
enable = true;
settings = {
format = "[ ](${rich_lemon})[ CrOS](bg:${rich_lemon} fg:${raisin_black})$username$hostname[ ](fg:${rich_lemon} bg:${blushing_purple})$directory[ ](fg:${blushing_purple} bg:${frostbite})$git_branch$git_status[ ](fg:${frostbite} bg:${steel_pink})$nix_shell[ ](${steel_pink})";
right_format = "[ ](${rich_lemon})$time[ ](${rich_lemon})";
# Left Modules
username = {
disabled = false;
format = "[ $user]($style)";
style_user = "fg:${keppel} bg:${rich_lemon}";
style_root = "fg:${blood_red} bg:${rich_lemon}";
disabled = false;
format = "[ $user]($style)";
style_user = "fg:${keppel} bg:${rich_lemon}";
style_root = "fg:${blood_red} bg:${rich_lemon}";
};
hostname = {
disabled = false;
format = "[@$hostname ]($style)";
style = "fg:${keppel} bg:${rich_lemon}";
ssh_only = false;
ssh_symbol = "";
disabled = false;
format = "[@$hostname ]($style)";
style = "fg:${keppel} bg:${rich_lemon}";
ssh_only = false;
ssh_symbol = "";
};
directory = {
disabled = false;
format = "[ $path ]($style)";
style = "bg:${blushing_purple} fg:${raisin_black}";
truncation_length = 3;
truncation_symbol = "/";
disabled = false;
format = "[ $path ]($style)";
style = "bg:${blushing_purple} fg:${raisin_black}";
truncation_length = 3;
truncation_symbol = "/";
};
git_branch = {
disabled = false;
format = "[ $symbol $branch ]($style)";
symbol = "";
style = "fg:${raisin_black} bg:${frostbite}";
disabled = false;
format = "[ $symbol $branch ]($style)";
symbol = "";
style = "fg:${raisin_black} bg:${frostbite}";
};
git_status = {
disabled = false;
format = "[$all_status$ahead_behind]($style)";
style = "fg:${raisin_black} bg:${frostbite}";
disabled = false;
format = "[$all_status$ahead_behind]($style)";
style = "fg:${raisin_black} bg:${frostbite}";
};
nix_shell = {
disabled = false;
format = "[$symbol $name]($style)";
style = "bg:${steel_pink} fg:${electric_blue}";
symbol = "";
disabled = false;
format = "[$symbol $name]($style)";
style = "bg:${steel_pink} fg:${electric_blue}";
symbol = "";
};
# Right Modules
time = {
disabled = false;
format = "[$time]($style)";
style = "fg:${raisin_black} bg:${rich_lemon}";
disabled = false;
format = "[$time]($style)";
style = "fg:${raisin_black} bg:${rich_lemon}";
};
};
};

View file

@ -9,7 +9,7 @@
initialPassword = "changeme";
extraGroups = ["wheel" "networkmanager" "audio" "plugdev" "dialout"];
openssh.authorizedKeys.keyFiles = [
inputs.nix-secrets.keys.default
inputs.nix-secrets.keys.default
];
};

View file

@ -10,7 +10,7 @@ lib.mkIf config.user.live.enable {
initialPassword = "live";
extraGroups = ["wheel" "networkmanager" "audio" "plugdev"];
openssh.authorizedKeys.keyFiles = [
inputs.nix-secrets.keys.default
inputs.nix-secrets.keys.default
];
};
}

View file

@ -22,6 +22,8 @@ in
"d ${volumePath}/NPM/data 700 overseer"
"d ${volumePath}/NPM/letsencrypt 700 overseer"
"d ${volumePath}/homebox/data 700 overseer"
];
# Pull in the restic secrets from sops
@ -47,12 +49,13 @@ in
# OCI services
virtualisation.podman.enable = true;
virtualisation.oci-containers.backend = "podman";
networking.firewall.allowedTCPPorts = [
81
443
80
];
# These ports are needed for NGINX Proxy Manager
networking.firewall.allowedTCPPorts = [
81
443
80
];
virtualisation.oci-containers.containers = {
# NGINX Proxy Manager
@ -70,4 +73,14 @@ in
];
};
};
services = {
homebox = {
enable = true;
settings = {
HBOX_STORAGE_DATA = "${volumePath}/homebox/data";
HBOX_STORAGE_SQLITE_URL = "${volumePath}/homebox/data/homebox.db?_fk=1&_time_format=sqlite";
};
};
};
}

View file

@ -9,8 +9,8 @@
initialPassword = "changeme";
extraGroups = ["wheel" "libvirtd"];
openssh.authorizedKeys.keyFiles = [
inputs.nix-secrets.keys.default
inputs.nix-secrets.keys.overseer
inputs.nix-secrets.keys.default
inputs.nix-secrets.keys.overseer
];
};
}