diff options
-rw-r--r-- | common/variables.nix | 2 | ||||
-rw-r--r-- | nixos/configuration.nix | 5 |
2 files changed, 6 insertions, 1 deletions
diff --git a/common/variables.nix b/common/variables.nix index d8c3e42..189aaa7 100644 --- a/common/variables.nix +++ b/common/variables.nix @@ -14,6 +14,7 @@ myEmail = mkOption {type = str;}; displayScale = mkOption {type = int;}; myAutostartCommands = mkOption {type = listOf str;}; + myConfigLocation = mkOption {type = str;}; }; # Default values for this configuration @@ -27,5 +28,6 @@ myAutostartCommands = [ "fcitx5" ]; + myConfigLocation = "/home/${myUserName}/nix-conf"; }; } diff --git a/nixos/configuration.nix b/nixos/configuration.nix index 2463a7c..b0b1d9b 100644 --- a/nixos/configuration.nix +++ b/nixos/configuration.nix @@ -17,7 +17,10 @@ ./hardware-configuration.nix #./ags.nix ]; - environment.variables = {GDK_SCALE = config.displayScale;}; + environment.variables = { + GDK_SCALE = config.displayScale; + FLAKE = config.myConfigLocation; + }; security.pam.services.hyprlock = {}; i18n.inputMethod = { enabled = "fcitx5"; |