Initial Commit

This commit is contained in:
2024-10-02 00:54:05 -05:00
commit 46ebfc5cb6
45 changed files with 4120 additions and 0 deletions

29
services/flake.nix Normal file
View File

@@ -0,0 +1,29 @@
{
description = "Nathan user service config";
inputs = {
mpdris.url = "./mpdris";
ollama.url = "./ollama";
};
outputs = { self, ... }@inputs: {
module = { config, lib, pkgs, ... }: {
imports = [
inputs.ollama.module
];
};
hmModule = { config, lib, pkgs, ... }: {
imports = [
inputs.mpdris.hmModule
];
};
};
}

28
services/mpdris/flake.nix Normal file
View File

@@ -0,0 +1,28 @@
{
description = "mpdris config";
inputs = {
};
outputs = { self, ... }@inputs: {
module = {}: {};
hmModule = { config, lib, pkgs, ... }: {
imports = [];
services.mpdris2 = {
enable = true;
mpd.host = "127.0.0.1";
mpd.port = 6600;
package = pkgs.mpdris2;
mpd.musicDirectory = "/home/nathan/Music";
notifications = true;
};
};
};
}

12
services/ollama/flake.nix Normal file
View File

@@ -0,0 +1,12 @@
{
description = "ollama config";
inputs = {
};
outputs = { self, ... }: {
module = import ./ollama.nix;
};
}

View File

@@ -0,0 +1,7 @@
{ config, lib, pkgs, ... }: {
services.ollama = {
enable = true;
acceleration = "cuda";
};
}