Moved custom services & hardware hacks to nixos root folder

This commit is contained in:
ari committed 2024-08-11 10:34:24 -04:00
1 parent 4e25515b14
commit 8abf744687
12 files changed
+25 -12

No files matched your search

+1 -2
View File
@@ -18,8 +18,7 @@
{ pkgs, ... }: {
imports = [
(import ./skyg)
(import ./hl-services)
(import ./hl-hardware)
(import ./nixos)
] ++ (if desktop.enable then
[ (import ./desktop ({ user = user; } // desktop)) ]
else
+6
View File
@@ -0,0 +1,6 @@
{ ... }:
{
imports = [
./hardware
];
}
File renamed without changes.
@@ -5,7 +5,7 @@
, ...
}:
let
cfg = config.homelab.hardware.fan2go;
cfg = config.skyg.hardware.fan2go;
fan2goConfig = pkgs.writeText "fan2go.yaml" ''
dbPath: ${cfg.dbPath}
@@ -65,7 +65,7 @@ let
'';
in
{
options.homelab.hardware.fan2go = with lib; {
options.skyg.hardware.fan2go = with lib; {
enable = mkEnableOption "fan2go";
dbPath = mkOption {
@@ -4,10 +4,10 @@
, ...
}:
let
cfg = config.homelab.hardware.fancontrol;
cfg = config.skyg.hardware.fancontrol;
in
{
options.homelab.hardware.fancontrol = with lib; {
options.skyg.hardware.fancontrol = with lib; {
enable = mkEnableOption "fancontrol";
configName = mkOption {
type = types.str;
+7
View File
@@ -0,0 +1,7 @@
{ ... }:
{
imports = [
./common
./server
];
}
+1
View File
@@ -0,0 +1 @@
@@ -2,10 +2,10 @@
with lib;
let cfg = config.homelab.services.audiobookshelf;
let cfg = config.skyg.homelab.services.audiobookshelf;
in {
options = {
homelab.services.audiobookshelf = {
skyg.homelab.services.audiobookshelf = {
enable = mkEnableOption
"Audiobookshelf, self-hosted audiobook and podcast server.";
@@ -1,9 +1,9 @@
{ config, lib, ... }:
with lib;
let cfg = config.homelab.udevrules.coraltpu;
let cfg = config.skyg.homelab.udevrules.coraltpu;
in {
options = {
homelab.udevrules.coraltpu = {
skyg.homelab.udevrules.coraltpu = {
enable = mkEnableOption
"Enable Coral TPU Udev rules";
symlinkName = mkOption {
File renamed without changes.