diff options
| author | Quentin Aristote <quentin@aristote.fr> | 2023-02-17 21:22:14 +0100 |
|---|---|---|
| committer | Quentin Aristote <quentin@aristote.fr> | 2023-02-17 21:24:35 +0100 |
| commit | 1fdbb44df1c3b8c0bab9e36cee3e8167e102efc3 (patch) | |
| tree | 210b87b2addd1cc16f06f5646276215841a30622 /modules/nixos/personal/environment.nix | |
| parent | 262ad5ace2500d97ee3015aee7655f5893801153 (diff) | |
add filtron and rss-bridge modules
Diffstat (limited to 'modules/nixos/personal/environment.nix')
| -rw-r--r-- | modules/nixos/personal/environment.nix | 31 |
1 files changed, 31 insertions, 0 deletions
diff --git a/modules/nixos/personal/environment.nix b/modules/nixos/personal/environment.nix new file mode 100644 index 0000000..5c84037 --- /dev/null +++ b/modules/nixos/personal/environment.nix @@ -0,0 +1,31 @@ +{ config, lib, pkgs, ... }: + +let cfg = config.personal.environment; +in { + options.personal.environment = { + enable = lib.mkEnableOption "basic environment"; + locale.enable = lib.mkEnableOption "French locale"; + }; + + config = lib.mkIf cfg.enable (lib.mkMerge [ + { + environment.systemPackages = with pkgs; [ + vim + gitMinimal + busybox + coreutils + ]; + } + (lib.mkIf cfg.locale.enable { + time.timeZone = "Europe/Paris"; + i18n = { + defaultLocale = "fr_FR.utf8"; + extraLocaleSettings.LANG = "en_US.utf8"; + }; + console = { + font = "Lat2-Terminus16"; + keyMap = config.personal.hardware.keyboard.keyMap; + }; + }) + ]); +} |
