Initial Commit
This commit is contained in:
29
services/flake.nix
Normal file
29
services/flake.nix
Normal 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
28
services/mpdris/flake.nix
Normal 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
12
services/ollama/flake.nix
Normal file
@@ -0,0 +1,12 @@
|
||||
{
|
||||
description = "ollama config";
|
||||
|
||||
inputs = {
|
||||
};
|
||||
|
||||
outputs = { self, ... }: {
|
||||
|
||||
module = import ./ollama.nix;
|
||||
|
||||
};
|
||||
}
|
||||
7
services/ollama/ollama.nix
Normal file
7
services/ollama/ollama.nix
Normal file
@@ -0,0 +1,7 @@
|
||||
{ config, lib, pkgs, ... }: {
|
||||
|
||||
services.ollama = {
|
||||
enable = true;
|
||||
acceleration = "cuda";
|
||||
};
|
||||
}
|
||||
Reference in New Issue
Block a user