Files

34 lines
770 B
Nix
Raw Permalink Normal View History

2026-08-20 22:03:24 +02:00
{
flake.modules.nixos.misc = {
lib,
config,
...
}:
with lib; let
cfg = config.mySystem.misc;
in {
2026-10-03 09:56:48 +02:00
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";
2026-08-20 22:03:24 +02:00
};
config = {
console.keyMap = cfg.keymap;
time.timeZone = cfg.timezone;
2026-10-03 09:56:48 +02:00
services.envfs.enable = true;
services.orca.enable = false;
boot.tmp.cleanOnBoot = true;
2026-08-20 22:03:24 +02:00
environment.pathsToLink = [
"/share/bash-completion"
"/share/zsh"
];
};
};
}