This commit is contained in:
randomuser 2023-10-30 16:15:31 -05:00
parent 1d19db7c9e
commit 8cc0168d2a
4 changed files with 44 additions and 32 deletions

View File

@ -1,12 +0,0 @@
{ lib, config, pkgs, ...}:
{
imports = [
../common/desktop.nix
];
boot.loader.grub.enable = true;
boot.loader.grub.device = "/dev/sda";
networking.hostName = "mainsail";
}

37
boxes/mainsail.nix Normal file
View File

@ -0,0 +1,37 @@
{ lib, config, pkgs, ...}:
{
imports = [
../common/desktop.nix
];
boot.loader.grub.enable = true;
boot.loader.grub.device = "/dev/sda";
networking.hostName = "mainsail";
services.paperless = {
enable = true;
passwordFile = "/etc/paperless-password";
port = 3004;
address = "localhost";
extraConfig = {
PAPERLESS_URL = "https://paperless.beepboop.systems";
};
};
services.getty.greetingLine = "
welcome to mainsail |`-:_
,----....____ | `+.
( ````----....|___ |
\\ _ ````----....____
\\ _) ```---.._
\\ \\
)`.\\ )`. )`. )`. )`. )`. )`. )`. )`. )`. )`.
-' `-' `-' `-' `-' `-' `-' `-' `-' `-' `-' `
";
environment.systemPackages = with pkgs; [
vscodium
];
}

View File

@ -122,23 +122,6 @@
'';
};
services.paperless = {
enable = true;
passwordFile = "/etc/paperless-password";
port = 3004;
address = "localhost";
extraConfig = {
PAPERLESS_URL = "https://paperless.beepboop.systems";
};
};
# services.ntfy-sh = {
# enable = true;
# settings = {
# listen-http = ":3500";
# };
# };
services.vaultwarden.enable = true;
# Open ports in the firewall.

View File

@ -4,7 +4,9 @@ exists() {
xrandr | grep ' connected' | grep -c "${1}"
}
if [ ! "$(hostname)" = "mainsail" ]; then
bspc monitor eDP-1 -d 1 2 3 4 5 6 7 8 9
fi
if [ "$(exists "DP-1")" -gt 1 ]; then
printf "two"
@ -13,5 +15,7 @@ if [ "$(exists "DP-1")" -gt 1 ]; then
exit 0
fi
# default configuration's fine
if [ "$(exists "HDMI-1")" -gt 1 ] && [ "$(hostname)" = "mainsail" ]; then
printf "mainsail selected\nHDMI-1 detected only, doing that\n"
bspc monitor HDMI-1 -d 1 2 3 4 5 6 7 8 9
fi