From 68ae98e4573b5b93fbd2246095ddff2d87e42523 Mon Sep 17 00:00:00 2001 From: Zynh Ludwig Date: Mon, 25 Nov 2024 18:28:43 -0800 Subject: [PATCH] virtmsi: add host --- flake.nix | 1 + hosts/virtmsi/home.nix | 40 ++++++++++++++++++++++++++++++++++++++++ 2 files changed, 41 insertions(+) create mode 100644 hosts/virtmsi/home.nix diff --git a/flake.nix b/flake.nix index 3e771b0..937da5e 100644 --- a/flake.nix +++ b/flake.nix @@ -37,6 +37,7 @@ homeConfigurations = builders.compileHomes [ { user = "zynh"; hostname = "msiserver"; } { user = "val"; hostname = "caveserver"; } + { user = "ravenshade"; hostname = "virtmsi"; } ]; overlays.default = import ./pkgs; diff --git a/hosts/virtmsi/home.nix b/hosts/virtmsi/home.nix new file mode 100644 index 0000000..eb093ba --- /dev/null +++ b/hosts/virtmsi/home.nix @@ -0,0 +1,40 @@ +{ pkgs, ... }: + +{ + imports = [ + ../../home/modules + ]; + + nix = { + package = pkgs.nix; + settings = { + auto-optimise-store = true; + experimental-features = [ "nix-command" "flakes" ]; + }; + }; + + snowhawk.neovim = { + enable = true; + }; + snowhawk.ssh.enable = true; + snowhawk.sops.enable = false; + snowhawk.repo-clone.enable = true; + + snowhawk.user.username = "ravenshade"; + + home.packages = with pkgs; [ + nix-output-monitor + (writeShellScriptBin "rebuild" '' + home-manager switch --flake /home/ravenshade/.config/home-manager#ravenshade@virtmsi |& nom + '') + + pkgs.nix + + go + wakeonlan + ]; + + # Let Home Manager install and manage itself. + programs.home-manager.enable = true; + home.stateVersion = "23.11"; +}