This commit is contained in:
Daniel Flanagan 2023-10-16 16:50:55 -05:00
parent bce7da7e64
commit ffca372e29
Signed by: lytedev
GPG key ID: 5B2020A0F9921EF4
5 changed files with 52 additions and 10 deletions

View file

@ -34,15 +34,12 @@
display: none;
}
#main-window[tabsintitlebar="
true "]:not([extradragspace="
true "]) #TabsToolbar>.toolbar-items {
#main-window[tabsintitlebar="true"]:not([extradragspace="true"]) #TabsToolbar>.toolbar-items {
opacity: 0;
pointer-events: none;
}
#main-window:not([tabsintitlebar="
true "]) #TabsToolbar {
#main-window:not([tabsintitlebar="true"]) #TabsToolbar {
visibility: collapse !important;
}
'';

View file

@ -12,11 +12,11 @@
gtk = {
enable = true;
theme = {
name = "Catppuccin-Mocha-Compact-Sapphire-dark";
name = "Catppuccin-Mocha-Compact-Sapphire-Dark";
package = pkgs.catppuccin-gtk.override {
accents = ["sapphire"];
size = "compact";
tweaks = ["rimless" "black"];
tweaks = ["rimless"];
variant = "mocha";
};
};

View file

@ -15,6 +15,12 @@
linux-desktop
];
programs.wofi = {
enable = true;
# settings = {};
# style = '' '';
};
home.pointerCursor = {
name = "Bibata-Modern-Classic";
package = pkgs.bibata-cursors;

View file

@ -38,7 +38,7 @@
environment = {
variables = {
GTK_THEME = "hx";
GTK_THEME = "Catppuccin-Mocha-Compact-Sapphire-Dark";
VISUAL = "hx";
PAGER = "less";
MANPAGER = "less";
@ -77,7 +77,6 @@
weechat
wine
wl-clipboard
wofi
zathura
];
};

View file

@ -150,6 +150,7 @@ sudo nix run nixpkgs#ipmitool -- raw 0x30 0x30 0x02 0xff 0x00
users.extraGroups = {
"plausible" = {};
"nextcloud" = {};
"lytedev" = {};
};
users.groups.daniel.members = ["daniel"];
@ -212,6 +213,13 @@ sudo nix run nixpkgs#ipmitool -- raw 0x30 0x30 0x02 0xff 0x00
group = "plausible";
};
users.users.nextcloud = {
# used for anonymous samba access
isSystemUser = true;
createHome = false;
group = "nextcloud";
};
environment.systemPackages = [pkgs.linuxquota];
# TODO: make the client declarative? right now I think it's manually git
@ -277,6 +285,10 @@ sudo nix run nixpkgs#ipmitool -- raw 0x30 0x30 0x02 0xff 0x00
reverse_proxy :${toString config.services.plausible.server.port}
}
nextcloud.lyte.dev {
reverse_proxy :${toString 9999}
}
git.lyte.dev {
reverse_proxy :${toString config.services.gitea.settings.server.HTTP_PORT}
}
@ -384,7 +396,7 @@ sudo nix run nixpkgs#ipmitool -- raw 0x30 0x30 0x02 0xff 0x00
services.postgresql = {
enable = true;
ensureDatabases = ["daniel" "plausible"];
ensureDatabases = ["daniel" "plausible" "nextcloud"];
ensureUsers = [
{
name = "daniel";
@ -398,6 +410,12 @@ sudo nix run nixpkgs#ipmitool -- raw 0x30 0x30 0x02 0xff 0x00
"DATABASE plausible" = "ALL PRIVILEGES";
};
}
{
name = "nextcloud";
ensurePermissions = {
"DATABASE nextcloud" = "ALL PRIVILEGES";
};
}
];
dataDir = "/storage/postgres";
enableTCPIP = true;
@ -410,6 +428,7 @@ sudo nix run nixpkgs#ipmitool -- raw 0x30 0x30 0x02 0xff 0x00
local all daniel peer map=superuser_map
local sameuser all peer map=superuser_map
local plausible plausible peer map=superuser_map
local nextcloud nextcloud peer map=superuser_map
# lan ipv4
host all all 10.0.0.0/24 trust
@ -577,6 +596,27 @@ sudo nix run nixpkgs#ipmitool -- raw 0x30 0x30 0x02 0xff 0x00
};
};
services.redis = {
servers = {
nextcloud = {
enable = true;
user = config.systemd.services.nextcloud.serviceConfig.User;
# group = config.systemd.services.nextcloud.serviceConfig.Group;
};
};
};
services.nextcloud = {
enable = true;
package = pkgs.nextcloud27;
config = {
dbtype = "pgsql";
};
hostName = "nextcloud.lyte.dev";
};
# paths:
# TODO: move previous backups over and put here
# clickhouse and plausible analytics once they're up and running?