Working on reshuffling
This commit is contained in:
@@ -133,65 +133,6 @@ The Nix flake definition for Droidnix.
|
||||
|
||||
* Let's define the core of the system
|
||||
|
||||
** =generated/hosts/traveldroid/core.nix=
|
||||
#+BEGIN_SRC nix :tangle generated/hosts/traveldroid/core.nix :noweb tangle :mkdirp yes :eval never-html
|
||||
{ lib, config, ... }:
|
||||
|
||||
let
|
||||
cfg = config.mySystem.system.core;
|
||||
in
|
||||
{
|
||||
options.mySystem.system.core.enable =
|
||||
lib.mkEnableOption "Core System Settings";
|
||||
|
||||
imports = [
|
||||
./locale.nix
|
||||
./networking.nix
|
||||
./services.nix
|
||||
./users/user.nix
|
||||
./homebase.nix
|
||||
./nix.nix
|
||||
./boot.nix
|
||||
];
|
||||
|
||||
config = lib.mkIf cfg.enable {
|
||||
# alleen echt "core-specifieke" dingen hier
|
||||
|
||||
nixpkgs.config.allowUnfree = true;
|
||||
};
|
||||
}
|
||||
#+END_SRC
|
||||
|
||||
** =generated/hosts/traveldroid/locale.nix=
|
||||
#+BEGIN_SRC nix :tangle generated/hosts/traveldroid/locale.nix :noweb tangle :mkdirp yes :eval never-html
|
||||
{ lib, config, ... }:
|
||||
|
||||
let
|
||||
coreEnabled = config.mySystem.system.core.enable or false;
|
||||
in
|
||||
{
|
||||
options.mySystem.system.locale.enable =
|
||||
lib.mkEnableOption "Locale settings";
|
||||
|
||||
config = lib.mkIf (coreEnabled || config.mySystem.system.locale.enable) {
|
||||
|
||||
time.timeZone = "Europe/Amsterdam";
|
||||
i18n.defaultLocale = "nl_NL.UTF-8";
|
||||
i18n.extraLocaleSettings = {
|
||||
LC_ADDRESS = "nl_NL.UTF-8";
|
||||
LC_IDENTIFICATION = "nl_NL.UTF-8";
|
||||
LC_MEASUREMENT = "nl_NL.UTF-8";
|
||||
LC_MONETARY = "nl_NL.UTF-8";
|
||||
LC_NAME = "nl_NL.UTF-8";
|
||||
LC_NUMERIC = "nl_NL.UTF-8";
|
||||
LC_PAPER = "nl_NL.UTF-8";
|
||||
LC_TELEPHONE = "nl_NL.UTF-8";
|
||||
LC_TIME = "nl_NL.UTF-8";
|
||||
};
|
||||
};
|
||||
}
|
||||
#+END_SRC
|
||||
|
||||
** =generated/hosts/traveldroid/networking.nix=
|
||||
This sets the networking.
|
||||
#+BEGIN_SRC nix :tangle generated/hosts/traveldroid/networking.nix :noweb tangle :mkdirp yes :eval never-html
|
||||
|
||||
@@ -1,25 +0,0 @@
|
||||
{ lib, config, ... }:
|
||||
|
||||
let
|
||||
cfg = config.mySystem.system.core;
|
||||
in
|
||||
{
|
||||
options.mySystem.system.core.enable =
|
||||
lib.mkEnableOption "Core System Settings";
|
||||
|
||||
imports = [
|
||||
./locale.nix
|
||||
./networking.nix
|
||||
./services.nix
|
||||
./users/user.nix
|
||||
./homebase.nix
|
||||
./nix.nix
|
||||
./boot.nix
|
||||
];
|
||||
|
||||
config = lib.mkIf cfg.enable {
|
||||
# alleen echt "core-specifieke" dingen hier
|
||||
|
||||
nixpkgs.config.allowUnfree = true;
|
||||
};
|
||||
}
|
||||
@@ -1,26 +0,0 @@
|
||||
{ lib, config, ... }:
|
||||
|
||||
let
|
||||
coreEnabled = config.mySystem.system.core.enable or false;
|
||||
in
|
||||
{
|
||||
options.mySystem.system.locale.enable =
|
||||
lib.mkEnableOption "Locale settings";
|
||||
|
||||
config = lib.mkIf (coreEnabled || config.mySystem.system.locale.enable) {
|
||||
|
||||
time.timeZone = "Europe/Amsterdam";
|
||||
i18n.defaultLocale = "nl_NL.UTF-8";
|
||||
i18n.extraLocaleSettings = {
|
||||
LC_ADDRESS = "nl_NL.UTF-8";
|
||||
LC_IDENTIFICATION = "nl_NL.UTF-8";
|
||||
LC_MEASUREMENT = "nl_NL.UTF-8";
|
||||
LC_MONETARY = "nl_NL.UTF-8";
|
||||
LC_NAME = "nl_NL.UTF-8";
|
||||
LC_NUMERIC = "nl_NL.UTF-8";
|
||||
LC_PAPER = "nl_NL.UTF-8";
|
||||
LC_TELEPHONE = "nl_NL.UTF-8";
|
||||
LC_TIME = "nl_NL.UTF-8";
|
||||
};
|
||||
};
|
||||
}
|
||||
Reference in New Issue
Block a user