Compare commits

..

No commits in common. "7b9b6c1cdd2586acdb4c840279e11281a9f62b6f" and "64d5fa9f0438926eb0613a56dd3e97b3f53242e7" have entirely different histories.

6 changed files with 70 additions and 105 deletions

View file

@ -16,28 +16,5 @@
imports = [ imports = [
./../../home ./../../home
]; ];
desktop.hyprland = {
numlock = true;
monitors = [
"desc:AOC Q27G2WG4 0x00005F45, 2560x1440@144, 3840x0, 1 # main monitor"
"desc:Samsung Electric Company S24D330 0x5A5A5131, 1920x1080@60, 3840x1440, 1 # side monitor"
"desc:Panasonic Industry Company Panasonic-TV, 3840x2160@30, 0x0, 1 # tv"
"desc:Valve Corporation Index HMD 0x3DEBE38D, preffered, auto, 1"
];
workspaces.workspaces = [
"1, monitor:DP-1, persistent:true"
"2, monitor:DP-1, persistent:true"
"3, monitor:DP-1, persistent:true"
"4, monitor:DP-1, persistent:true"
"5, monitor:HDMI-A-1, persistent:true"
"6, monitor:HDMI-A-1, persistent:true"
"7, monitor:HDMI-A-1, persistent:true"
"8, monitor:HDMI-A-1, persistent:true"
"9, monitor:DP-3, persistent:true"
"special:magic"
];
};
programs.home-manager.enable = true; programs.home-manager.enable = true;
} }

View file

@ -125,7 +125,7 @@
enable = true; enable = true;
}; };
sway = { sway = {
enable = false; enable = true;
}; };
}; };
shell = { shell = {

View file

@ -125,7 +125,7 @@
enable = true; enable = true;
}; };
sway = { sway = {
enable = true; enable = false;
}; };
}; };
shell = { shell = {

View file

@ -21,11 +21,9 @@
}; };
}; };
config = { config = {
services = services = {
if config.server.cloud.nextcloud.enable then
{
nextcloud = { nextcloud = {
enable = true; enable = config.server.cloud.nextcloud.enable;
configureRedis = true; configureRedis = true;
package = pkgs.nextcloud33; package = pkgs.nextcloud33;
hostName = "nextcloud-net"; hostName = "nextcloud-net";
@ -34,7 +32,7 @@
dbuser = "nextcloud"; dbuser = "nextcloud";
dbhost = "/run/postgresql"; # nextcloud will add /.s.PGSQL.5432 by itself dbhost = "/run/postgresql"; # nextcloud will add /.s.PGSQL.5432 by itself
dbname = "nextcloud"; dbname = "nextcloud";
adminpassFile = "/home/marty/secrets/nextcloud"; adminpassFile = "/home/${config.user.userName}/secrets/nextcloud";
adminuser = "admin"; adminuser = "admin";
}; };
settings = { settings = {
@ -55,7 +53,9 @@
loglevel = 0; loglevel = 0;
}; };
}; };
postgresql = { postgresql =
if config.server.cloud.nextcloud.enable then
{
enable = true; enable = true;
ensureDatabases = [ "nextcloud" ]; ensureDatabases = [ "nextcloud" ];
ensureUsers = [ ensureUsers = [
@ -64,7 +64,9 @@
ensureDBOwnership = true; ensureDBOwnership = true;
} }
]; ];
}; }
else
{ };
nginx = { nginx = {
virtualHosts = { virtualHosts = {
"nextcloud-net".listen = [ "nextcloud-net".listen = [
@ -86,18 +88,10 @@
{ }; { };
}; };
}; };
} };
else systemd.services."nextcloud-setup" = {
{ };
systemd =
if config.server.cloud.nextcloud.enable then
{
services."nextcloud-setup" = {
requires = [ "postgresql.service" ]; requires = [ "postgresql.service" ];
after = [ "postgresql.service" ]; after = [ "postgresql.service" ];
}; };
}
else
{ };
}; };
} }

View file

@ -4,9 +4,7 @@
pkgs, pkgs,
... ...
}: }:
let
domain = ${config.server.misc.lauti.subdomain}.${config.networking.domain};
in
{ {
options = { options = {
server.misc.lauti = { server.misc.lauti = {
@ -16,10 +14,6 @@ in
description = "lauti port"; description = "lauti port";
}; };
public = lib.mkEnableOption "make lauti public"; public = lib.mkEnableOption "make lauti public";
domain = lib.mkOption {
default = "";
description = "lauti domain";
};
subdomain = lib.mkOption { subdomain = lib.mkOption {
default = "lauti"; default = "lauti";
description = "lauti subdomain"; description = "lauti subdomain";
@ -32,7 +26,7 @@ in
enable = config.server.misc.lauti.enable; enable = config.server.misc.lauti.enable;
settings = { settings = {
LAUTI_ADMIN_EMAIL = "lauti@${config.networking.domain}"; LAUTI_ADMIN_EMAIL = "lauti@${config.networking.domain}";
LAUTI_BASE_URL = "https://${domain}"; LAUTI_BASE_URL = "https://${config.server.misc.lauti.subdomain}.${config.networking.domain}";
LAUTI_OSM_TILE_CACHE_DIR = "/var/lib/lauti/osm"; LAUTI_OSM_TILE_CACHE_DIR = "/var/lib/lauti/osm";
LAUTI_OSM_TILE_SERVER = "https://tile.openstreetmap.org/{z}/{x}/{y}.png"; LAUTI_OSM_TILE_SERVER = "https://tile.openstreetmap.org/{z}/{x}/{y}.png";
LAUTI_TIMEZONE = "Europe/Berlin"; LAUTI_TIMEZONE = "Europe/Berlin";
@ -42,7 +36,7 @@ in
}; };
nginx = { nginx = {
virtualHosts = { virtualHosts = {
"${domain}" = "${config.server.misc.lauti.subdomain}.${config.networking.domain}" =
if config.server.misc.lauti.public then if config.server.misc.lauti.public then
{ {
enableACME = true; enableACME = true;