diff options
author | Preston Pan <ret2pop@gmail.com> | 2025-02-05 03:38:52 -0800 |
---|---|---|
committer | Preston Pan <ret2pop@gmail.com> | 2025-02-05 03:38:52 -0800 |
commit | 56faa5e9caf4408c2c4d6df50287c3b1c9e6c1b4 (patch) | |
tree | 188362e97ecfd0f935b1ac1efc1c3cfb00ef616e /nix/modules/home/user.nix | |
parent | 990134fdcefe5a520b09ac6dfcaf97066fde6685 (diff) |
Finish automation of spontaneity cloud deployments
Diffstat (limited to 'nix/modules/home/user.nix')
-rw-r--r-- | nix/modules/home/user.nix | 25 |
1 files changed, 17 insertions, 8 deletions
diff --git a/nix/modules/home/user.nix b/nix/modules/home/user.nix index 7c470aa..882041b 100644 --- a/nix/modules/home/user.nix +++ b/nix/modules/home/user.nix @@ -23,7 +23,7 @@ homeDirectory = "/home/${config.monorepo.vars.userName}"; stateVersion = "24.11"; - packages = with pkgs; [ + packages = with pkgs; (if config.monorepo.profiles.graphics.enable then [ # wikipedia kiwix kiwix-tools @@ -49,11 +49,7 @@ torsocks tor-browser # fonts - noto-fonts - noto-fonts-cjk-sans - noto-fonts-emoji - fira-code - font-awesome_6 + noto-fonts noto-fonts-cjk-sans noto-fonts-emoji fira-code font-awesome_6 (aspellWithDicts (dicts: with dicts; [ en en-computers en-science ])) (nerdfonts.override { fonts = [ "Iosevka" ]; }) @@ -66,7 +62,20 @@ pfetch libnotify htop - ]; + (writeShellScriptBin "install_vps" + '' +#!/bin/bash +nix run github:nix-community/nixos-anywhere -- --generate-hardware-config nixos-generate-config ./systems/spontaneity/hardware-configuration.nix --flake .#spontaneity --target-host "$1" + '' + ) + ] else [ + pfetch + + # net + curl + torsocks + rsync + ]); }; services = { @@ -83,7 +92,7 @@ programs.bash.enable = true; gtk = { - enable = true; + enable = lib.mkDefault config.monorepo.profiles.graphics.enable; theme = null; iconTheme = null; }; |