From 0e6f928345ee89694dfc48173ef8419134f3b564 Mon Sep 17 00:00:00 2001 From: Aditya Date: Thu, 11 Apr 2024 11:05:45 +0530 Subject: [PATCH] add environment --- hosts/default/configuration.nix | 9 --------- modules/nixos/default.nix | 1 + modules/nixos/environment/default.nix | 10 ++++++++++ 3 files changed, 11 insertions(+), 9 deletions(-) create mode 100644 modules/nixos/environment/default.nix 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"; + }; + }; +}