Update home and configuration files for improved package management and user experience

This commit is contained in:
2026-01-27 17:21:44 +00:00
parent 2b7d9a5b20
commit de494a2a87
2 changed files with 24 additions and 7 deletions

View File

@@ -64,12 +64,12 @@
isNormalUser = true; isNormalUser = true;
description = "TrudeEH"; description = "TrudeEH";
extraGroups = [ "networkmanager" "wheel" ]; extraGroups = [ "networkmanager" "wheel" ];
packages = with pkgs; [ packages = with pkgs; [ ];
];
}; };
home-manager = { home-manager = {
useUserPackages = true;
useGlobalPkgs = true;
backupFileExtension = "~"; backupFileExtension = "~";
extraSpecialArgs = { inherit inputs; }; extraSpecialArgs = { inherit inputs; };
users = { users = {

View File

@@ -5,7 +5,6 @@
home.username = "trude"; home.username = "trude";
home.homeDirectory = "/home/trude"; home.homeDirectory = "/home/trude";
home.stateVersion = "25.11"; # Do not change after initial installation. home.stateVersion = "25.11"; # Do not change after initial installation.
nixpkgs.config.allowUnfree = true;
home.packages = with pkgs; [ home.packages = with pkgs; [
nerd-fonts.jetbrains-mono nerd-fonts.jetbrains-mono
@@ -28,12 +27,20 @@
gnomeExtensions.caffeine gnomeExtensions.caffeine
gnomeExtensions.vitals gnomeExtensions.vitals
gnomeExtensions.appindicator gnomeExtensions.appindicator
gnomeExtensions.blur-my-shell # gnomeExtensions.blur-my-shell
# Gnome Apps # Gnome Apps
file-roller file-roller
commit commit
binary binary
resources
raider
gnome-podcasts
gnome-obfuscate
collision
switcheroo
wordbook
textpieces
# Scripts # Scripts
(pkgs.writeShellScriptBin "colors" '' (pkgs.writeShellScriptBin "colors" ''
@@ -75,8 +82,6 @@
cat ~/.nixos-rebuild.log | grep --color error cat ~/.nixos-rebuild.log | grep --color error
exit 1 exit 1
fi fi
echo -e "''${ORANGE}Activating home-manager...''${RESET}"
echo -e "''${GRAY}$(~/.local/state/home-manager/gcroots/current-home/activate)''${RESET}"
echo -e "''${ORANGE}Cleaning up old generations...''${RESET}" echo -e "''${ORANGE}Cleaning up old generations...''${RESET}"
echo -e "''${GRAY}$(sudo nix-collect-garbage --delete-older-than 15d 2>&1)''${RESET}" echo -e "''${GRAY}$(sudo nix-collect-garbage --delete-older-than 15d 2>&1)''${RESET}"
popd > /dev/null popd > /dev/null
@@ -350,6 +355,18 @@
}; };
}; };
xdg = {
enable = true;
mimeApps = {
associations.added = {
"text/x-shellscript" = ["org.gnome.TextEditor.desktop"];
};
defaultApplications = {
"text/x-shellscript" = ["org.gnome.TextEditor.desktop"];
};
};
};
# Let Home Manager install and manage itself. # Let Home Manager install and manage itself.
programs.home-manager.enable = true; programs.home-manager.enable = true;
} }