diff --git a/flake.nix b/flake.nix index a40e4dc..e5e9f25 100644 --- a/flake.nix +++ b/flake.nix @@ -86,5 +86,13 @@ ./hosts/msiserver/home.nix ]; }; + homeConfigurations."val@caveserver" = inputs.home-manager.lib.homeManagerConfiguration { + pkgs = nixpkgs.legacyPackages."x86_64-linux"; + extraSpecialArgs = { inherit inputs; }; + + modules = [ + ./hosts/caveserver/home.nix + ]; + }; }; } diff --git a/hosts/caveserver/home.nix b/hosts/caveserver/home.nix new file mode 100644 index 0000000..4dc4e5b --- /dev/null +++ b/hosts/caveserver/home.nix @@ -0,0 +1,36 @@ +{ pkgs, inputs, config, ... }: + +{ + imports = [ + ../../home/modules + ]; + + snowhawk.neovim = { + enable = true; + package = inputs.neovim-overlay.packages.${pkgs.system}.default; + }; + snowhawk.user.enable = false; + snowhawk.defaultPrograms.enable = false; + + + home.username = "val"; + home.homeDirectory = "/home/val"; + + home.sessionPath = [ + "${config.home.homeDirectory}/.cargo/bin" + ]; + + home.packages = with pkgs; [ + nix-output-monitor + (writeShellScriptBin "rebuild" '' + sudo nixos-rebuild switch --log-format internal-json -v |& nom --json + '') + + go + rustup + ]; + + # Let Home Manager install and manage itself. + programs.home-manager.enable = true; + home.stateVersion = "23.11"; +}