From 23b93025c3b5afaedac5df95fcbd1a84bd0d1bac Mon Sep 17 00:00:00 2001 From: Zynh Ludwig Date: Thu, 11 Jul 2024 20:56:52 +0000 Subject: [PATCH] flake: caveserver --- flake.nix | 8 ++++++++ hosts/caveserver/home.nix | 36 ++++++++++++++++++++++++++++++++++++ 2 files changed, 44 insertions(+) create mode 100644 hosts/caveserver/home.nix 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"; +}