diff options
| author | adikro <adikro@disroot.org> | 2026-04-12 23:47:47 +0200 |
|---|---|---|
| committer | adikro <adikro@disroot.org> | 2026-04-12 23:47:47 +0200 |
| commit | bf126b5e1ae5cbab3b62c00bbff614a23539e431 (patch) | |
| tree | b275c56596eaf3f5754cea30f04e84bbcc21e305 /os/core/default.nix | |
| parent | 3ed184c48a1154a2548df807c8aaae7888e4792c (diff) | |
finalized client configs for tor, i2pd and yggdrasil
Diffstat (limited to 'os/core/default.nix')
| -rw-r--r-- | os/core/default.nix | 36 |
1 files changed, 36 insertions, 0 deletions
diff --git a/os/core/default.nix b/os/core/default.nix new file mode 100644 index 0000000..160e67b --- /dev/null +++ b/os/core/default.nix @@ -0,0 +1,36 @@ +{ config, lib, ... }: +let + cfg = config.os.core; +in +{ + imports = [ + ./audio.nix + ./bootloader.nix + ./drivers.nix + ./fonts.nix + ./greet.nix + ./home-manager.nix + ./localization.nix + ./memory.nix + ./networking.nix + ./power.nix + ./security.nix + ./ssh.nix + ./storage.nix + ./users.nix + ]; + + options.os.core = { + allowUnfree.enable = lib.mkEnableOption "unfree software"; + flatpak.enable = lib.mkEnableOption "Flatpak support"; + }; + + config = lib.mkMerge [ + (lib.mkIf cfg.allowUnfree.enable { + nixpkgs.config.allowUnfree = true; + }) + (lib.mkIf cfg.flatpak.enable { + services.flatpak.enable = true; + }) + ]; +} |
