2023-10-30 16:15:31 -05:00
|
|
|
{ lib, config, pkgs, ...}:
|
|
|
|
{
|
|
|
|
imports = [
|
2023-11-15 21:04:50 -06:00
|
|
|
../common/steam.nix
|
2023-10-30 16:15:31 -05:00
|
|
|
../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";
|
|
|
|
};
|
|
|
|
};
|
2023-12-06 18:22:25 -06:00
|
|
|
|
2023-12-18 13:19:58 -06:00
|
|
|
services.calibre-web.enable = true;
|
|
|
|
services.calibre-web.listen.port = 8080;
|
|
|
|
|
2023-12-28 14:59:51 -06:00
|
|
|
powerManagement.enable = false;
|
|
|
|
|
2023-11-15 21:04:50 -06:00
|
|
|
programs.adb.enable = true;
|
|
|
|
users.users.usr.extraGroups = ["adbusers"];
|
|
|
|
|
2023-12-18 13:19:58 -06:00
|
|
|
services.openssh = {
|
|
|
|
enable = true;
|
|
|
|
ports = [2222];
|
|
|
|
};
|
|
|
|
|
2024-01-02 15:20:19 -06:00
|
|
|
<<<<<<< Updated upstream
|
2023-12-06 18:22:25 -06:00
|
|
|
services.radicale = {
|
|
|
|
enable = true;
|
2023-12-28 14:59:51 -06:00
|
|
|
settings = {
|
|
|
|
auth = {
|
|
|
|
type = "htpasswd";
|
|
|
|
htpasswd_filename = "radicale-passwd";
|
|
|
|
htpasswd_encryption = "plain";
|
|
|
|
};
|
|
|
|
};
|
2023-12-06 18:22:25 -06:00
|
|
|
};
|
|
|
|
|
2024-01-02 15:20:19 -06:00
|
|
|
=======
|
|
|
|
>>>>>>> Stashed changes
|
2023-11-15 21:04:50 -06:00
|
|
|
systemd.targets.sleep.enable = false;
|
|
|
|
systemd.targets.suspend.enable = false;
|
|
|
|
systemd.targets.hibernate.enable = false;
|
|
|
|
systemd.targets.hybrid-sleep.enable = false;
|
2023-10-30 16:15:31 -05:00
|
|
|
|
|
|
|
services.getty.greetingLine = "
|
|
|
|
welcome to mainsail |`-:_
|
|
|
|
,----....____ | `+.
|
|
|
|
( ````----....|___ |
|
|
|
|
\\ _ ````----....____
|
|
|
|
\\ _) ```---.._
|
|
|
|
\\ \\
|
|
|
|
)`.\\ )`. )`. )`. )`. )`. )`. )`. )`. )`. )`.
|
|
|
|
-' `-' `-' `-' `-' `-' `-' `-' `-' `-' `-' `
|
|
|
|
";
|
|
|
|
|
|
|
|
environment.systemPackages = with pkgs; [
|
2023-11-15 21:04:50 -06:00
|
|
|
vscodium-fhs
|
|
|
|
libreoffice
|
|
|
|
|
2023-12-18 13:19:58 -06:00
|
|
|
anki-bin
|
2023-11-21 11:09:16 -06:00
|
|
|
ytfzf
|
2023-11-15 21:04:50 -06:00
|
|
|
kdenlive
|
|
|
|
libreoffice
|
|
|
|
i3
|
|
|
|
gcc
|
|
|
|
gnumake
|
2023-12-06 18:22:25 -06:00
|
|
|
|
|
|
|
scrcpy
|
2023-12-18 13:19:58 -06:00
|
|
|
thunderbird
|
|
|
|
mepo
|
2023-10-30 16:15:31 -05:00
|
|
|
];
|
2023-11-22 16:53:33 -06:00
|
|
|
|
2023-12-18 13:19:58 -06:00
|
|
|
systemd.services.paperless-web-bridge = {
|
|
|
|
script = ''
|
2023-12-18 23:42:27 -06:00
|
|
|
${pkgs.openssh}/bin/ssh -v -NR 3004:localhost:3004 -oExitOnForwardFailure=yes -p 55555 useracc@beepboop.systems
|
2023-12-18 13:19:58 -06:00
|
|
|
'';
|
|
|
|
wantedBy = [ "multi-user.target" ];
|
|
|
|
after = [ "network.target" "ankisyncd.service" ];
|
2023-12-18 16:44:12 -06:00
|
|
|
serviceConfig = {
|
|
|
|
Restart = "on-failure";
|
2023-12-18 23:42:27 -06:00
|
|
|
StartLimitBurst = 10000;
|
2023-12-18 16:44:12 -06:00
|
|
|
RestartSec = "0s";
|
|
|
|
};
|
2023-12-18 13:19:58 -06:00
|
|
|
};
|
|
|
|
|
|
|
|
systemd.services.internal-ssh-bridge = {
|
|
|
|
script = ''
|
2023-12-18 23:42:27 -06:00
|
|
|
${pkgs.openssh}/bin/ssh -v -NR 2222:localhost:2222 -oExitOnForwardFailure=yes -p 55555 useracc@beepboop.systems
|
2023-12-18 13:19:58 -06:00
|
|
|
'';
|
2023-11-22 16:53:33 -06:00
|
|
|
wantedBy = [ "multi-user.target" ];
|
2023-12-06 18:22:25 -06:00
|
|
|
after = [ "network.target" "ankisyncd.service" ];
|
2023-12-18 16:44:12 -06:00
|
|
|
serviceConfig = {
|
|
|
|
Restart = "on-failure";
|
2023-12-18 23:42:27 -06:00
|
|
|
StartLimitBurst = 10000;
|
2023-12-18 16:44:12 -06:00
|
|
|
RestartSec = "0s";
|
|
|
|
};
|
2023-11-22 16:53:33 -06:00
|
|
|
};
|
2023-10-30 16:15:31 -05:00
|
|
|
}
|