From 33d2bbc4139a0d5a007751b76224e3b959aca8a1 Mon Sep 17 00:00:00 2001 From: kagura Date: Wed, 18 Sep 2024 19:21:46 +0800 Subject: [PATCH] Add packages --- home.nix | 15 ++++++++------- 1 file changed, 8 insertions(+), 7 deletions(-) diff --git a/home.nix b/home.nix index e09cab5..5578755 100644 --- a/home.nix +++ b/home.nix @@ -19,6 +19,8 @@ let fuzzel hyfetch btop + gnupg + vlc ]; nixosOnlyPackages = with pkgs; [ @@ -34,9 +36,12 @@ let # Other GUI Applications telegram-desktop vscode + google-chrome jetbrains-toolbox + libreoffice-qt6-fresh - jadx + unstable.android-studio + unstable.jadx ]; otherOnlyPackages = with pkgs; [ helix @@ -71,11 +76,7 @@ in # The home.packages option allows you to install Nix packages into your # environment. home.packages = if (builtins.pathExists /etc/NIXOS) then - (basicPackages) ++ (nixosOnlyPackages) ++ (with pkgs; [ - # Unstable packages here - unstable.android-studio - ]) - + (basicPackages) ++ (nixosOnlyPackages) else (basicPackages) ++ (otherOnlyPackages); # Home Manager is pretty good at managing dotfiles. The primary way to manage @@ -117,7 +118,7 @@ in vi = "hx"; vim = "hx"; - nixos-update = "cd /etc/nixos; sudo nix flake update; sudo nixos-rebuild switch --flake ."; + nixos-update = "cp -r ~/nixos-config ~/.nixos-config.bak; cd /etc/nixos; sudo nix flake update; sudo nixos-rebuild switch --flake ."; home-update = "home-manager switch"; home-edit = "hx ~/.config/home-manager"; };