mirror of
https://git.gay/sneexy/nixos.git
synced 2026-01-11 13:13:15 -08:00
chore: lots of changes made to flatpaks and auto upgrading
This commit is contained in:
parent
49a021eb12
commit
74e9f6985a
5 changed files with 91 additions and 38 deletions
|
|
@ -1,20 +1,25 @@
|
|||
# default config loads everything else
|
||||
{ config, pkgs, lib, ... }:
|
||||
|
||||
{
|
||||
config,
|
||||
pkgs,
|
||||
lib,
|
||||
...
|
||||
}: {
|
||||
home-manager.users.ruben = ./home.nix;
|
||||
# make home-manager create backup of files to prevent failure when updating system
|
||||
home-manager.backupFileExtension = "backup";
|
||||
|
||||
# myself :D
|
||||
users.users."ruben" = {
|
||||
isNormalUser = true;
|
||||
description = "Ruben";
|
||||
shell = pkgs.zsh;
|
||||
extraGroups = [ "wheel" "plugdev" "dialout" "libvirtd" ] ++ (lib.optional config.networking.networkmanager.enable "networkmanager");
|
||||
extraGroups = ["wheel" "plugdev" "dialout" "libvirtd"] ++ (lib.optional config.networking.networkmanager.enable "networkmanager");
|
||||
initialHashedPassword = "changeme";
|
||||
|
||||
openssh.authorizedKeys.keys = [ ''ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAAIO+V3b6oKMTLEBq8AKjdNF5ZwJGXuWTrS2u9QaEypBYP sneexy@disroot.org'' ];
|
||||
openssh.authorizedKeys.keys = [''ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAAIO+V3b6oKMTLEBq8AKjdNF5ZwJGXuWTrS2u9QaEypBYP sneexy@disroot.org''];
|
||||
};
|
||||
|
||||
programs.zsh.enable = true;
|
||||
environment.shells = with pkgs; [ zsh ];
|
||||
environment.shells = with pkgs; [zsh];
|
||||
}
|
||||
|
|
|
|||
|
|
@ -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";
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue