Files
nix-config/system/default.nix
Lucien Cartier-Tilet 5952720feb feat(system): disable orca, enable envfs
envfs enables compatibility on NixOS for scripts which assume the prensence
of some files, such as /bin/bash, which are usually present on other *Nix
systems.
2025-12-04 14:10:46 +01:00

45 lines
710 B
Nix

{
lib,
config,
...
}:
with lib; let
cfg = config.mySystem.misc;
in {
imports = [
./boot
./desktop
./dev
./hardware
./i18n
./network
./packages
./security
./services
./users
];
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";
};
};
config = {
boot.tmp.cleanOnBoot = true;
time.timeZone = cfg.timezone;
console.keyMap = cfg.keymap;
services = {
orca.enable = false;
envfs.enable = true;
};
};
}