refactor: change to litterate config

Configuration is now held by the `.org` files. All `.nix` files are
tangled from the org-mode files.
This commit is contained in:
2026-10-04 22:34:28 +02:00
parent 5f4a7a4a42
commit a2b21feacc
13 changed files with 898 additions and 86 deletions
+12 -16
View File
@@ -7,31 +7,27 @@
with lib; let
cfg = config.mySystem.misc;
in {
options.mySystem.misc = {
timezone = mkOption {
type = types.str;
default = "Europe/Paris";
};
keymap = mkOption {
type = types.str;
default = "fr";
example = "fr-bepo";
description = "Keymap to use in the TTY console";
};
options.mySystem.misc.timezone = mkOption {
type = types.str;
default = "Europe/Paris";
};
options.mySystem.misc.keymap = mkOption {
type = types.str;
default = "fr";
example = "fr-bepo";
description = "Keymap to use in the TTY console";
};
config = {
boot.tmp.cleanOnBoot = true;
console.keyMap = cfg.keymap;
time.timeZone = cfg.timezone;
services.envfs.enable = true;
services.orca.enable = false;
boot.tmp.cleanOnBoot = true;
environment.pathsToLink = [
"/share/bash-completion"
"/share/zsh"
];
services = {
orca.enable = false;
envfs.enable = true;
};
};
};
}