diff --git a/capibara.nix b/capibara.nix index 7ee0623..20fa20b 100644 --- a/capibara.nix +++ b/capibara.nix @@ -4,7 +4,8 @@ { config, pkgs, stablePkgs, impermanence, ... }: -{ +let home = "/home/rilla"; +in { imports = [ ./nixos/hardware-configuration/capibara.nix ./nixos/common.nix ]; home-manager = { @@ -26,8 +27,15 @@ # }; #}; - environment.variables.NIXOS_CONFIG = - "/home/rilla/configs/nix-config/capibara.nix"; + environment.variables = { + NIXOS_CONFIG = "${home}/configs/nix-config/capibara.nix"; + LV2_PATH = + "${home}/.nix-profile/lib/lv2:${home}/Audio/plugins/lv2:/run/current-system/sw/lib/lv2"; + LXVST_PATH = + "${home}/.nix-profile/lib/lxvst:${home}/Audio/plugins/lxvst:/run/current-system/sw/lib/lxvst"; + LADSPA_PATH = + "${home}/.nix-profile/lib/ladspa:${home}/Audio/plugins/ladspa:/run/current-system/sw/lib/ladspa"; + }; networking.networkmanager.wifi.macAddress = "CC:AF:78:75:29:32"; diff --git a/trantor.nix b/trantor.nix index e968b1e..60a25c7 100644 --- a/trantor.nix +++ b/trantor.nix @@ -4,7 +4,8 @@ { config, pkgs, stablePkgs, impermanence, ... }: -{ +let home = "/home/rilla"; +in { imports = [ ./nixos/hardware-configuration/trantor.nix ./nixos/common.nix ]; home-manager = { @@ -35,8 +36,15 @@ }; - environment.variables.NIXOS_CONFIG = - "/home/rilla/configs/nix-config/trantor.nix"; + environment.variables = { + NIXOS_CONFIG = "${home}/configs/nix-config/trantor.nix"; + LV2_PATH = + "${home}/.nix-profile/lib/lv2:${home}/Audio/plugins/lv2:/run/current-system/sw/lib/lv2"; + LXVST_PATH = + "${home}/.nix-profile/lib/lxvst:${home}/Audio/plugins/lxvst:/run/current-system/sw/lib/lxvst"; + LADSPA_PATH = + "${home}/.nix-profile/lib/ladspa:${home}/Audio/plugins/ladspa:/run/current-system/sw/lib/ladspa"; + }; networking.networkmanager.wifi.macAddress = "80:FA:5B:41:12:0F";