From 5e02cdc7ed82ac10375cacfca6920f20f5729059 Mon Sep 17 00:00:00 2001 From: Preston Pan Date: Thu, 13 Feb 2025 00:29:25 -0800 Subject: Add vps capabilities --- nix/modules/home/user.nix | 3 ++- nix/modules/home/zsh.nix | 2 +- 2 files changed, 3 insertions(+), 2 deletions(-) (limited to 'nix/modules/home') diff --git a/nix/modules/home/user.nix b/nix/modules/home/user.nix index 85b6a70..7872d53 100644 --- a/nix/modules/home/user.nix +++ b/nix/modules/home/user.nix @@ -65,7 +65,8 @@ (writeShellScriptBin "remote-build" '' #!/bin/bash -nixos-rebuild --target-host "$1" switch --flake .#spontaneity +cd ~/monorepo/nix +nixos-rebuild --use-remote-sudo --target-host "$1" switch --flake .#spontaneity '' ) (writeShellScriptBin "install-vps" diff --git a/nix/modules/home/zsh.nix b/nix/modules/home/zsh.nix index fc041e9..0c5bced 100644 --- a/nix/modules/home/zsh.nix +++ b/nix/modules/home/zsh.nix @@ -3,7 +3,7 @@ programs.zsh = { enable = true; initExtra = '' - umask 0077 + umask 0022 export EXTRA_CCFLAGS="-I/usr/include" source ${pkgs.zsh-vi-mode}/share/zsh-vi-mode/zsh-vi-mode.plugin.zsh export QT_QPA_PLATFORM="wayland" -- cgit