changes
This commit is contained in:
parent
1d19db7c9e
commit
8cc0168d2a
|
@ -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";
|
||||
}
|
|
@ -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
|
||||
];
|
||||
}
|
|
@ -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.
|
||||
|
|
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue