summaryrefslogtreecommitdiff
path: root/modules/sys/features
diff options
context:
space:
mode:
authoradikro <adikro@disroot.org>2025-12-20 03:14:45 +0100
committeradikro <adikro@disroot.org>2025-12-20 03:14:45 +0100
commit791bc419b6dac7c70951981ef6b34cdf85828470 (patch)
tree56d0962fdf829ae942feb1344763e54dbc3c89a3 /modules/sys/features
parente60410393cea222b16743a1a87f29c06b9b3543b (diff)
absolutely massive rewrite, made (almost) everything modular with changes to come
Diffstat (limited to 'modules/sys/features')
-rw-r--r--modules/sys/features/default.nix8
-rw-r--r--modules/sys/features/nh.nix26
-rw-r--r--modules/sys/features/ollama.nix21
-rw-r--r--modules/sys/features/virtualization.nix41
4 files changed, 0 insertions, 96 deletions
diff --git a/modules/sys/features/default.nix b/modules/sys/features/default.nix
deleted file mode 100644
index 790dc25..0000000
--- a/modules/sys/features/default.nix
+++ /dev/null
@@ -1,8 +0,0 @@
-{ ... }:
-{
- imports = [
- ./nh.nix
- ./ollama.nix
- ./virtualization.nix
- ];
-}
diff --git a/modules/sys/features/nh.nix b/modules/sys/features/nh.nix
deleted file mode 100644
index d24d88b..0000000
--- a/modules/sys/features/nh.nix
+++ /dev/null
@@ -1,26 +0,0 @@
-{ config, lib, pkgs, ... }:
-{
- options.szpont.nh = {
- enable = lib.mkOption {
- type = lib.types.bool;
- default = true;
- };
- };
-
- config = lib.mkIf config.szpont.nh.enable {
- nix.settings = {
- trusted-users = [ "root" "adam" ];
- experimental-features = [ "nix-command" "flakes" ];
- };
-
- programs.nh = {
- enable = true;
- flake = "/etc/nixos";
- };
-
- environment.systemPackages = with pkgs; [
- nix-output-monitor
- nvd
- ];
- };
-}
diff --git a/modules/sys/features/ollama.nix b/modules/sys/features/ollama.nix
deleted file mode 100644
index 0989419..0000000
--- a/modules/sys/features/ollama.nix
+++ /dev/null
@@ -1,21 +0,0 @@
-{ pkgs, ... }:
-{
- fileSystems."/models" = {
- device = "/home/ollama";
- fsType = "none";
- options = [ "bind" ];
- };
-
- services.ollama = {
- enable = true;
- package = pkgs.ollama-rocm;
- loadModels = [
- "deepseek-r1:14b"
- "qwen3:14b"
- "qwen3-coder:30b"
- ];
- syncModels = true;
- user = "ollama";
- models = "/models";
- };
-}
diff --git a/modules/sys/features/virtualization.nix b/modules/sys/features/virtualization.nix
deleted file mode 100644
index bb3e6cb..0000000
--- a/modules/sys/features/virtualization.nix
+++ /dev/null
@@ -1,41 +0,0 @@
-{ config, lib, pkgs, ... }:
-{
- options.szpont.virtualization = {
- enable = lib.mkOption {
- type = lib.types.bool;
- default = false;
- };
-
- kvm = {
- enable = lib.mkOption {
- type = lib.types.bool;
- default = true;
- };
- };
- docker = {
- enable = lib.mkOption {
- type = lib.types.bool;
- default = false;
- };
- };
- };
-
- config = lib.mkIf config.szpont.virtualization.enable (lib.mkMerge [
- (lib.mkIf config.szpont.virtualization.kvm.enable {
- virtualisation.libvirtd = {
- enable = true;
- qemu.package = pkgs.qemu_kvm;
- qemu.swtpm.enable = true;
- };
- programs.virt-manager.enable = true;
- users.users.adam.extraGroups = [ "libvirtd" ];
- boot.initrd.kernelModules = [ "kvm-amd" ];
- })
-
- (lib.mkIf config.szpont.virtualization.docker.enable {
- virtualisation.docker.enable = true;
- environment.systemPackages = [ pkgs.docker-compose ];
- users.users.adam.extraGroups = [ "docker" ];
- })
- ]);
-}