diff options
author | Preston Pan <ret2pop@gmail.com> | 2025-01-16 02:11:26 -0800 |
---|---|---|
committer | Preston Pan <ret2pop@gmail.com> | 2025-01-16 02:11:26 -0800 |
commit | 1a3486d77574c06b395ab6cda41084f5ed24a3f4 (patch) | |
tree | 69d1051bd14a0c3cb374f84a8c06cb655eba509b /nix/modules/configuration.nix | |
parent | 2dff9d2b61244fed49136028d0e0f6ae3ae759cf (diff) |
modularized nix configuration; builds correctly
Diffstat (limited to 'nix/modules/configuration.nix')
-rw-r--r-- | nix/modules/configuration.nix | 17 |
1 files changed, 10 insertions, 7 deletions
diff --git a/nix/modules/configuration.nix b/nix/modules/configuration.nix index 46deabb..286d485 100644 --- a/nix/modules/configuration.nix +++ b/nix/modules/configuration.nix @@ -1,6 +1,11 @@ { config, pkgs, lib, ... }: { - imports = []; + imports = [ + ./xserver.nix + ./ssh.nix + ./pipewire.nix + ./tor.nix + ]; documentation = { enable = lib.mkDefault config.monorepo.profiles.documentation.enable; @@ -197,10 +202,6 @@ usbguard.enable = false; dbus.apparmor = "enabled"; - tor = import ./tor.nix; - xserver = import ./xserver.nix; - pipewire = import ./pipewire.nix; - openssh = import ./ssh.nix; kanata.enable = true; # Misc. @@ -228,7 +229,7 @@ hostPlatform = lib.mkDefault "x86_64-linux"; config = { allowUnfree = true; - cudaSupport = lib.mkDefault false; + cudaSupport = lib.mkDefault config.monorepo.profiles.cuda.enable; }; }; @@ -273,9 +274,11 @@ }; environment.systemPackages = with pkgs; [ - tree restic sbctl + git + vim + curl ]; users.users = { |