summaryrefslogtreecommitdiff
path: root/sys/core/core.nix
diff options
context:
space:
mode:
authoradikro <adikro@disroot.org>2025-12-20 15:25:38 +0100
committeradikro <adikro@disroot.org>2025-12-20 15:25:38 +0100
commitc1d9af57156f3c95590d9a12c394ee064df9696e (patch)
tree7e515761590c510c30329ef8548c7d84a8e95aaa /sys/core/core.nix
parent791bc419b6dac7c70951981ef6b34cdf85828470 (diff)
added disko config for laptop, added storage and memory modules
Diffstat (limited to 'sys/core/core.nix')
-rw-r--r--sys/core/core.nix33
1 files changed, 32 insertions, 1 deletions
diff --git a/sys/core/core.nix b/sys/core/core.nix
index da8f277..ba38eb9 100644
--- a/sys/core/core.nix
+++ b/sys/core/core.nix
@@ -1,4 +1,7 @@
-{ ... }:
+{ config, lib, pkgs, ... }:
+let
+ cfg = config.sys.core;
+in
{
imports = [
./audio.nix
@@ -8,7 +11,35 @@
./greet.nix
./home-manager.nix
./localization.nix
+ ./memory.nix
./networking.nix
./security.nix
+ ./storage.nix
+ ./users.nix
+ ];
+
+ options.sys.core = {
+ allowUnfree.enable = lib.mkEnableOption "unfree software";
+
+ flatpak.enable = lib.mkEnableOption "Flatpak support";
+
+ hardwareTools = {
+ enable = lib.mkEnableOption "peripheral and thermal tools";
+ };
+ };
+
+ config = lib.mkMerge [
+ (lib.mkIf cfg.allowUnfree.enable {
+ nixpkgs.config.allowUnfree = true;
+ })
+
+ (lib.mkIf cfg.flatpak.enable {
+ services.flatpak.enable = true;
+ })
+
+ (lib.mkIf cfg.hardwareTools.enable {
+ programs.coolercontrol.enable = true;
+ environment.systemPackages = [ pkgs.rivalcfg ];
+ })
];
}