mirror of
https://git.gay/sneexy/nixos.git
synced 2026-01-11 05:03: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,10 +1,11 @@
|
|||
# Edit this configuration file to define what should be installed on
|
||||
# your system. Help is available in the configuration.nix(5) man page
|
||||
# and in the NixOS manual (accessible by running ‘nixos-help’).
|
||||
|
||||
{ config, pkgs, ... }:
|
||||
|
||||
{
|
||||
config,
|
||||
pkgs,
|
||||
...
|
||||
}: {
|
||||
imports = [
|
||||
# Include the results of the hardware scan.
|
||||
./hardware-configuration.nix
|
||||
|
|
@ -37,7 +38,7 @@
|
|||
system.autoUpgrade = {
|
||||
enable = true;
|
||||
persistent = true;
|
||||
flake = "/etc/nixos#thonkpad";
|
||||
flake = "/home/ruben/.nixos#thonkpad";
|
||||
flags = [
|
||||
"-L"
|
||||
];
|
||||
|
|
|
|||
|
|
@ -1,10 +1,11 @@
|
|||
# Edit this configuration file to define what should be installed on
|
||||
# your system. Help is available in the configuration.nix(5) man page
|
||||
# and in the NixOS manual (accessible by running ‘nixos-help’).
|
||||
|
||||
{ config, pkgs, ... }:
|
||||
|
||||
{
|
||||
config,
|
||||
pkgs,
|
||||
...
|
||||
}: {
|
||||
imports = [
|
||||
# Include the results of the hardware scan.
|
||||
./hardware-configuration.nix
|
||||
|
|
@ -37,7 +38,7 @@
|
|||
system.autoUpgrade = {
|
||||
enable = true;
|
||||
persistent = true;
|
||||
flake = "/etc/nixos#thunkpad";
|
||||
flake = "/home/ruben/.nixos#thunkpad";
|
||||
flags = [
|
||||
"-L"
|
||||
];
|
||||
|
|
|
|||
42
nixos.nix
42
nixos.nix
|
|
@ -197,13 +197,15 @@
|
|||
wireplumber.enable = true;
|
||||
};
|
||||
|
||||
# flatpaks
|
||||
# TODO: unsure if i should even bother using flatpaks in a configuration/distro like this...
|
||||
# maybe i can fully embrace flatpaks once i've figured out how to remove default packages
|
||||
services.flatpak.remotes = lib.mkOptionDefault [{
|
||||
# we like flatpaks
|
||||
services.flatpak.enable = true;
|
||||
|
||||
services.flatpak.remotes = lib.mkOptionDefault [
|
||||
{
|
||||
name = "flathub-system";
|
||||
location = "https://dl.flathub.org/repo/flathub.flatpakrepo";
|
||||
}];
|
||||
}
|
||||
];
|
||||
|
||||
services.flatpak.update.auto.enable = true;
|
||||
services.flatpak.uninstallUnmanaged = true;
|
||||
|
|
@ -218,22 +220,38 @@
|
|||
"org.qbittorrent.qBittorrent"
|
||||
];
|
||||
|
||||
services.flatpak.overrides = {
|
||||
global = {
|
||||
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";
|
||||
};
|
||||
};
|
||||
};
|
||||
|
||||
environment.systemPackages = with pkgs; [
|
||||
git
|
||||
wget fzf
|
||||
curl curlHTTP3
|
||||
wget
|
||||
fzf
|
||||
curl
|
||||
curlHTTP3
|
||||
virt-manager
|
||||
pinentry-curses
|
||||
kitty wezterm
|
||||
kitty
|
||||
wezterm
|
||||
bibata-cursors
|
||||
papirus-icon-theme
|
||||
#(catppuccin-papirus-folders.override { flavor = [ "mocha" ]; accent = [ "green" ]; })
|
||||
(catppuccin-kde.override { flavour = [ "mocha" ]; accents = [ "green" ]; winDecStyles = [ "modern" ]; })
|
||||
(catppuccin-kde.override {
|
||||
flavour = ["mocha"];
|
||||
accents = ["green"];
|
||||
winDecStyles = ["modern"];
|
||||
})
|
||||
];
|
||||
|
||||
# we like flatpaks
|
||||
services.flatpak.enable = true;
|
||||
|
||||
# steam
|
||||
programs.steam.enable = true;
|
||||
|
||||
|
|
|
|||
|
|
@ -1,8 +1,13 @@
|
|||
# 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" = {
|
||||
|
|
|
|||
|
|
@ -38,10 +38,12 @@
|
|||
# │ |_| │
|
||||
# │ flatpak │
|
||||
# ╰─────────────────────────────────╯
|
||||
services.flatpak.remotes = lib.mkOptionDefault [{
|
||||
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";
|
||||
};
|
||||
};
|
||||
};
|
||||
|
||||
# ╭──────────────────────────────────────╮
|
||||
# │ _ │
|
||||
# │ _ __ __ _ __| |____ _ __ _ ___ ___ │
|
||||
|
|
@ -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