summaryrefslogtreecommitdiff
path: root/modules
diff options
context:
space:
mode:
authorFuwn <[email protected]>2024-08-31 19:04:52 -0700
committerFuwn <[email protected]>2024-08-31 19:04:52 -0700
commitc664a90a560401016b2c85cd701b52e1003e673f (patch)
tree80161c797002d91d95559f24e9f502530bea941e /modules
parenthi (diff)
downloadnixos-config-c664a90a560401016b2c85cd701b52e1003e673f.tar.xz
nixos-config-c664a90a560401016b2c85cd701b52e1003e673f.zip
hi
Diffstat (limited to 'modules')
-rw-r--r--modules/default.nix2
-rw-r--r--modules/nixpkgs.nix6
-rw-r--r--modules/services/ollama.nix6
3 files changed, 13 insertions, 1 deletions
diff --git a/modules/default.nix b/modules/default.nix
index 1f34456..22b7854 100644
--- a/modules/default.nix
+++ b/modules/default.nix
@@ -8,13 +8,13 @@
./datetime.nix
./networking.nix
./nix.nix
+ ./nixpkgs.nix
./security.nix
./users.nix
./virtualisation.nix
./xdg-portal.nix
];
- nixpkgs.config.allowUnfree = true;
location.provider = "geoclue2";
system.autoUpgrade.enable = false;
}
diff --git a/modules/nixpkgs.nix b/modules/nixpkgs.nix
new file mode 100644
index 0000000..206983c
--- /dev/null
+++ b/modules/nixpkgs.nix
@@ -0,0 +1,6 @@
+{
+ nixpkgs.config = {
+ cudaSupport = true;
+ allowUnfree = true;
+ };
+}
diff --git a/modules/services/ollama.nix b/modules/services/ollama.nix
new file mode 100644
index 0000000..2638d12
--- /dev/null
+++ b/modules/services/ollama.nix
@@ -0,0 +1,6 @@
+{
+ services.ollama = {
+ enable = false;
+ acceleration = "cuda";
+ };
+}