diff --git a/hosts/default/configuration.nix b/hosts/default/configuration.nix index c89b404..5d0c766 100644 --- a/hosts/default/configuration.nix +++ b/hosts/default/configuration.nix @@ -67,15 +67,6 @@ }; }; - environment = { - homeBinInPath = true; # Include ~/bin/ in $PATH - localBinInPath = true; # Include ~/.local/bin in $PATH - sessionVariables = { - # tell electron apps to use wayland - NIXOS_OZONW_WL = "1"; - }; - }; - # This value determines the NixOS release from which the default # settings for stateful data, like file locations and database versions # on your system were taken. It‘s perfectly fine and recommended to leave diff --git a/modules/nixos/default.nix b/modules/nixos/default.nix index 712d63f..9695ca1 100644 --- a/modules/nixos/default.nix +++ b/modules/nixos/default.nix @@ -4,6 +4,7 @@ ./bootloader ./display-manager ./editor + ./environment ./filesystem ./fonts ./hardware diff --git a/modules/nixos/environment/default.nix b/modules/nixos/environment/default.nix new file mode 100644 index 0000000..2be989b --- /dev/null +++ b/modules/nixos/environment/default.nix @@ -0,0 +1,10 @@ +_: { + environment = { + homeBinInPath = true; # Include ~/bin/ in $PATH + localBinInPath = true; # Include ~/.local/bin in $PATH + sessionVariables = { + # tell electron apps to use wayland + NIXOS_OZONE_WL = "1"; + }; + }; +}