Update common.nix

This commit is contained in:
ediblerope 2025-12-25 12:08:14 +00:00 committed by GitHub
parent c08f0be157
commit 64d992ec7b
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -2,7 +2,6 @@
{ config, pkgs, lib, ... }:
{
imports = [
./settings/gnome.nix
./settings/locale.nix
@ -10,7 +9,6 @@ imports = [
./settings/users.nix
./apps/fastfetch.nix
./apps/flatpaks.nix
# Add all your hosts here
];
# Use latest kernel
@ -41,6 +39,11 @@ environment.shellAliases = {
fi
sudo nix-channel --update
# Wipe the flatpak state cache to ensure a fresh sync
echo "Cleaning Flatpak state cache..."
sudo rm -f /nix/var/nix/gcroots/flatpak-state.json
sudo nixos-rebuild switch --upgrade --option tarball-ttl 0
'';
clean = "sudo nix-collect-garbage -d";
@ -53,7 +56,4 @@ environment.systemPackages = with pkgs; [
git
adwaita-icon-theme
];
}