mirror of
https://github.com/donovanglover/nix-config.git
synced 2025-06-20 01:38:02 +02:00
nix: Begin migration to options
No need to import a variables file since all modules have access to the options defined in all other modules.
This commit is contained in:
parent
afd6cce13c
commit
2d808e6162
13
default.nix
13
default.nix
@ -1,4 +1,4 @@
|
|||||||
{ home-manager, stylix, ... }:
|
{ home-manager, stylix, lib, ... }:
|
||||||
|
|
||||||
let VARIABLES = import ./src/variables.nix; in {
|
let VARIABLES = import ./src/variables.nix; in {
|
||||||
imports = [
|
imports = [
|
||||||
@ -12,4 +12,15 @@ let VARIABLES = import ./src/variables.nix; in {
|
|||||||
./specializations
|
./specializations
|
||||||
./src/main.nix
|
./src/main.nix
|
||||||
];
|
];
|
||||||
|
|
||||||
|
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"; };
|
||||||
|
};
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user