Files
nix-config/modules/misc.nix
T
phundrak a2b21feacc refactor: change to litterate config
Configuration is now held by the `.org` files. All `.nix` files are
tangled from the org-mode files.
2026-10-04 22:34:28 +02:00

34 lines
770 B
Nix

{
flake.modules.nixos.misc = {
lib,
config,
...
}:
with lib; let
cfg = config.mySystem.misc;
in {
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 = {
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"
];
};
};
}