Compare commits

..

No commits in common. "68f532398c235f8d7313fb887096e420773f48ab" and "ac228ac385f7ddac546dcdd7d91369431982fa62" have entirely different histories.

6 changed files with 14 additions and 28 deletions

1
.envrc
View file

@ -1,2 +1 @@
use flake use flake
PATH_add bin

View file

@ -1,4 +0,0 @@
#!/usr/bin/env bash
# vim: ft=sh
home-manager switch --flake .#$USER@$(hostname)

View file

@ -1,4 +0,0 @@
#!/usr/bin/env bash
# vim: ft=sh
sudo nixos-rebuild switch --flake .#$(hostname)

View file

@ -1,4 +0,0 @@
#!/usr/bin/env bash
# vim: ft=sh
nixos-rebuild switch --flake .#vps --target-host root@vps

View file

@ -89,12 +89,20 @@
pkgs.sops pkgs.sops
]; ];
packages = [ shellHook = ''
(pkgs.symlinkJoin { HOST=$(hostname)
name = "deploy-bin"; deploy-nixos() {
paths = [ ./bin ]; sudo nixos-rebuild switch --flake .#$HOST "$@"
}) }
];
deploy-vps() {
nixos-rebuild switch --flake .#vps --target-host root@vps "$@"
}
deploy-home() {
home-manager switch --flake .#$USER@$HOST
}
'';
}; };
} }
); );

View file

@ -9,8 +9,6 @@
../modules/cli/btop.nix ../modules/cli/btop.nix
../modules/cli/yazi.nix ../modules/cli/yazi.nix
../modules/cli/nixvim ../modules/cli/nixvim
../modules/cli/zsh.nix
../modules/cli/direnv.nix
]; ];
home = { home = {
@ -19,13 +17,6 @@
stateVersion = "24.11"; stateVersion = "24.11";
}; };
programs.zsh.initContent = ''
PROMPT='%n@%m:%~/ > '
export EDITOR="nvim"
export VISUAL="nvim"
export LANG=en_US.UTF-8
'';
nixpkgs.config.allowUnfree = true; nixpkgs.config.allowUnfree = true;
systemd.user.startServices = "sd-switch"; systemd.user.startServices = "sd-switch";
} }