feat: introduce flake var to shorten nh commands
This commit is contained in:
parent
4fc96a3a59
commit
793491e2a1
2 changed files with 6 additions and 1 deletions
|
@ -14,6 +14,7 @@
|
||||||
myEmail = mkOption {type = str;};
|
myEmail = mkOption {type = str;};
|
||||||
displayScale = mkOption {type = int;};
|
displayScale = mkOption {type = int;};
|
||||||
myAutostartCommands = mkOption {type = listOf str;};
|
myAutostartCommands = mkOption {type = listOf str;};
|
||||||
|
myConfigLocation = mkOption {type = str;};
|
||||||
};
|
};
|
||||||
|
|
||||||
# Default values for this configuration
|
# Default values for this configuration
|
||||||
|
@ -27,5 +28,6 @@
|
||||||
myAutostartCommands = [
|
myAutostartCommands = [
|
||||||
"fcitx5"
|
"fcitx5"
|
||||||
];
|
];
|
||||||
|
myConfigLocation = "/home/${myUserName}/nix-conf";
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
|
|
@ -17,7 +17,10 @@
|
||||||
./hardware-configuration.nix
|
./hardware-configuration.nix
|
||||||
#./ags.nix
|
#./ags.nix
|
||||||
];
|
];
|
||||||
environment.variables = {GDK_SCALE = config.displayScale;};
|
environment.variables = {
|
||||||
|
GDK_SCALE = config.displayScale;
|
||||||
|
FLAKE = config.myConfigLocation;
|
||||||
|
};
|
||||||
security.pam.services.hyprlock = {};
|
security.pam.services.hyprlock = {};
|
||||||
i18n.inputMethod = {
|
i18n.inputMethod = {
|
||||||
enabled = "fcitx5";
|
enabled = "fcitx5";
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue