chore: lots of changes made to flatpaks and auto upgrading

This commit is contained in:
Ruben 2024-04-20 16:14:04 -05:00
commit 74e9f6985a
No known key found for this signature in database
GPG key ID: A6C94D84D2DA13EE
5 changed files with 91 additions and 38 deletions

View file

@ -38,10 +38,12 @@
# │ |_| │
# │ flatpak │
# ╰─────────────────────────────────╯
services.flatpak.remotes = lib.mkOptionDefault [{
name = "flathub-user";
location = "https://dl.flathub.org/repo/flathub.flatpakrepo";
}];
services.flatpak.remotes = lib.mkOptionDefault [
{
name = "flathub-user";
location = "https://dl.flathub.org/repo/flathub.flatpakrepo";
}
];
services.flatpak.update.auto.enable = true;
services.flatpak.uninstallUnmanaged = true;
@ -77,6 +79,28 @@
"io.gitlab.azymohliad.WatchMate"
];
services.flatpak.overrides = {
global = {
Context.filesystems = [
"xdg-config/gtk-4.0:ro"
"xdg-config/gtk-3.0:ro"
"xdg-run/discord-ipc-*"
"xdg-run/.flatpak/dev.vencord.Vesktop:create"
"xdg-config/fontconfig:ro"
"~/.themes:ro"
"~/.local/share/themes:ro"
];
Environment = {
GTK_THEME = "Catppuccin-Mocha-Compact-Green-Dark";
ICON_THEME = "Papirus-Dark";
XCURSOR_PATH = "/run/host/user-share/icons:/run/host/share/icons";
XCURSOR_SIZE = "24";
XCURSOR_THEME = "Bibata-Modern-Light";
};
};
};
# ╭──────────────────────────────────────╮
# │ _ │
# │ _ __ __ _ __| |____ _ __ _ ___ ___ │
@ -219,7 +243,7 @@
theme = {
name = "Catppuccin-Mocha-Compact-Green-Dark";
package = pkgs.catppuccin-gtk.override {
accents = [ "green" ];
accents = ["green"];
size = "compact";
#tweaks = [ "rimless" "black" ];
variant = "mocha";
@ -227,8 +251,8 @@
};
};
# required for catppuccin's gtk4 theme
xdg.configFile = {
# required for catppuccin's gtk4 theme
"gtk-4.0/assets".source = "${config.gtk.theme.package}/share/themes/${config.gtk.theme.name}/gtk-4.0/assets";
"gtk-4.0/gtk.css".source = "${config.gtk.theme.package}/share/themes/${config.gtk.theme.name}/gtk-4.0/gtk.css";
"gtk-4.0/gtk-dark.css".source = "${config.gtk.theme.package}/share/themes/${config.gtk.theme.name}/gtk-4.0/gtk-dark.css";
@ -250,6 +274,10 @@
# Enable home-manager
programs.home-manager.enable = true;
# home-manager should automatically update for me
services.home-manager.autoUpgrade.enable = true;
services.home-manager.autoUpgrade.frequency = "daily";
# https://nixos.wiki/wiki/FAQ/When_do_I_update_stateVersion
home.stateVersion = "23.11";
}