diff --git a/modules/fish-starship/default.nix b/modules/fish-starship/default.nix index 647b7636..8db7b27d 100644 --- a/modules/fish-starship/default.nix +++ b/modules/fish-starship/default.nix @@ -1,4 +1,6 @@ -{pkgs, ...}: { +{pkgs, ...}: let + VARIABLES = import ../../src/variables.nix; +in { users.defaultUserShell = pkgs.fish; environment.shells = [pkgs.fish]; @@ -58,7 +60,7 @@ jis = "recode shift_jis..utf8"; # Easily convert shift_jis-encoded files to utf8 utf16 = "recode utf16..utf8"; # Rarely, some files from Japan are utf16 instead jp = "LANG=ja_JP.UTF-8 LC_ALL=ja_JP.UTF-8"; - vm = "cd ~/nix-config && nixos-rebuild build-vm --flake . && ./result/bin/run-nixos-vm && trash put result nixos.qcow2"; + vm = "cd ~/nix-config && nixos-rebuild build-vm --flake . && ./result/bin/run-${VARIABLES.hostname}-vm && trash put result ${VARIABLES.hostname}.qcow2"; sw = "cd ~/nix-config && sudo nixos-rebuild switch --flake ."; c = "tput reset"; # Clear the terminal completely