diff --git a/flake.nix b/flake.nix index 2e0323f..1be0a3d 100644 --- a/flake.nix +++ b/flake.nix @@ -56,6 +56,14 @@ ./home-manager/home.nix ]; }; + + "${username}@enoko" = lib.homeManagerConfiguration { + pkgs = nixpkgs.legacyPackages.x86_64-linux; + extraSpecialArgs = { inherit inputs outputs username; }; + modules = [ + ./home-manager/home.nix + ]; + }; }; }; } diff --git a/home-manager/devel.nix b/home-manager/devel.nix new file mode 100644 index 0000000..6e5fdec --- /dev/null +++ b/home-manager/devel.nix @@ -0,0 +1,10 @@ +{lib, pkgs, config, ...}: { + # install some base linux packages for development + home.packages = with pkgs; [ + gcc + gnumake + + lazygit + unzip + ]; +} diff --git a/home-manager/fish.nix b/home-manager/fish.nix index e0efd61..5367dcd 100644 --- a/home-manager/fish.nix +++ b/home-manager/fish.nix @@ -89,6 +89,16 @@ gaa = "git add --all"; gco = "git checkout"; editorigin = "git remote set-url origin"; + + # nix aliases + n = "nix"; + nd = "nix develop"; + ns = "nix shell"; + np = "nix profile"; + ngc = "nix-collect-garbage"; + hm = "home-manager"; + hmreload = "cd ~/nix-config && home-manager switch --flake .#(whoami)@(hostname) && cd -"; + hminplace = "home-manager switch --flake .#(whoami)@(hostname)"; }; plugins = [ diff --git a/home-manager/home.nix b/home-manager/home.nix index d450685..c9e2436 100644 --- a/home-manager/home.nix +++ b/home-manager/home.nix @@ -10,6 +10,7 @@ }: { # You can import other home-manager modules here imports = [ + ./devel.nix ./fish.nix ./neovim.nix ./mise.nix diff --git a/home-manager/mise.nix b/home-manager/mise.nix index 58c3889..0a46ccc 100644 --- a/home-manager/mise.nix +++ b/home-manager/mise.nix @@ -1,4 +1,7 @@ { config, pkgs, lib, ... }: { + home.packages = with pkgs; [ + python3 # needed for installing node.js + ]; programs.mise = { enable = true; enableFishIntegration = true;