Set NIX_PATH

* set `NIX_PATH` correctly
* ensure that dynamic update of nixpkgs path works
This commit is contained in:
jalr 2021-12-04 22:10:57 +00:00
parent 80dcdb8290
commit 1dab9bb303
4 changed files with 10 additions and 0 deletions

View file

@ -62,6 +62,8 @@ in
programs.fish.loginShellInit = '' programs.fish.loginShellInit = ''
if [ -z $WAYLAND_DISPLAY ] && [ (tty) = /dev/tty1 ] if [ -z $WAYLAND_DISPLAY ] && [ (tty) = /dev/tty1 ]
export XDG_SESSION_TYPE="wayland" # otherwise set to tty export XDG_SESSION_TYPE="wayland" # otherwise set to tty
set -e __HM_SESS_VARS_SOURCED
set -e __NIXOS_SET_ENVIRONMENT_DONE
exec systemd-cat -t sway sway exec systemd-cat -t sway sway
end end
''; '';

View file

@ -8,6 +8,7 @@
imports = [ imports = [
./autologin.nix ./autologin.nix
./dji-goggles.nix ./dji-goggles.nix
./fish.nix
./fonts.nix ./fonts.nix
./kvm-switch-enable-screen.nix ./kvm-switch-enable-screen.nix
./localization.nix ./localization.nix

3
modules/fish.nix Normal file
View file

@ -0,0 +1,3 @@
{
programs.fish.enable = true;
}

View file

@ -14,6 +14,10 @@
daemonIOSchedPriority = 7; daemonIOSchedPriority = 7;
autoOptimiseStore = true; autoOptimiseStore = true;
nixPath = [
"nixpkgs=${inputs.nixpkgs}"
];
}; };
nixpkgs.overlays = with inputs; [ nixpkgs.overlays = with inputs; [