mirror of
https://github.com/donovanglover/nix-config.git
synced 2024-12-26 16:48:49 +01:00
nix: Remove one-off variables
Don't use variables for things that only get defined in one place.
This commit is contained in:
parent
4d8ce87fb1
commit
99d2913b41
@ -15,11 +15,8 @@
|
||||
|
||||
options.variables = {
|
||||
hostname = lib.mkOption { default = "nixos"; };
|
||||
timezone = lib.mkOption { default = "America/New_York"; };
|
||||
hostHardwareConfiguration = lib.mkOption { default = ./hardware/laptop.nix; };
|
||||
stateVersion = lib.mkOption { default = "22.11"; };
|
||||
defaultLocale = lib.mkOption { default = "ja_JP.UTF-8"; };
|
||||
supportedLocales = lib.mkOption { default = [ "ja_JP.UTF-8/UTF-8" "en_US.UTF-8/UTF-8" "fr_FR.UTF-8/UTF-8" ]; };
|
||||
username = lib.mkOption { default = "user"; };
|
||||
defaultBrowser = lib.mkOption { default = "librewolf"; };
|
||||
};
|
||||
|
@ -1,4 +1,4 @@
|
||||
let VARIABLES = import ../src/variables.nix; in {
|
||||
i18n.defaultLocale = VARIABLES.defaultLocale;
|
||||
i18n.supportedLocales = VARIABLES.supportedLocales;
|
||||
{
|
||||
i18n.defaultLocale = "ja_JP.UTF-8";
|
||||
i18n.supportedLocales = [ "ja_JP.UTF-8/UTF-8" "en_US.UTF-8/UTF-8" "fr_FR.UTF-8/UTF-8" ];
|
||||
}
|
||||
|
@ -1,3 +1,3 @@
|
||||
let VARIABLES = import ../src/variables.nix; in {
|
||||
time.timeZone = "${VARIABLES.timezone}";
|
||||
{
|
||||
time.timeZone = "America/New_York";
|
||||
}
|
||||
|
@ -1,11 +1,8 @@
|
||||
{
|
||||
hostname = "nixos";
|
||||
system = "x86_64-linux";
|
||||
timezone = "America/New_York";
|
||||
hostHardwareConfiguration = ../hardware/laptop.nix;
|
||||
stateVersion = "22.11";
|
||||
defaultLocale = "ja_JP.UTF-8";
|
||||
supportedLocales = [ "ja_JP.UTF-8/UTF-8" "en_US.UTF-8/UTF-8" "fr_FR.UTF-8/UTF-8" ];
|
||||
username = "user";
|
||||
defaultBrowser = "librewolf";
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user