diff options
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; + }) + ]; +} |
