formatting and hooks
This commit is contained in:
1 parent
7d5ddd9013
commit
2d956525cc
15 files changed
+146
-65
No files matched your search
+6
-6
@@ -22,11 +22,11 @@ let
|
||||
}
|
||||
);
|
||||
osModules = [
|
||||
determinate.nixosModules.default
|
||||
stylix.nixosModules.stylix
|
||||
home-manager.nixosModules.default
|
||||
nix-flatpak.nixosModules.nix-flatpak
|
||||
specialArgs.dms.nixosModules.dank-material-shell
|
||||
determinate.nixosModules.default
|
||||
stylix.nixosModules.stylix
|
||||
home-manager.nixosModules.default
|
||||
nix-flatpak.nixosModules.nix-flatpak
|
||||
specialArgs.dms.nixosModules.dank-material-shell
|
||||
];
|
||||
# makeHomeManagerUsers =
|
||||
# { modules ? [ ]
|
||||
@@ -96,7 +96,7 @@ in
|
||||
hostName
|
||||
systemStateVersion
|
||||
homeManagerVersion
|
||||
;
|
||||
;
|
||||
})
|
||||
] ++ configuration;
|
||||
};
|
||||
|
||||
+19
-19
@@ -4,27 +4,27 @@
|
||||
}:
|
||||
let
|
||||
cfg = config.skyg.networkDrives;
|
||||
makeCommonOption = {
|
||||
defaultHost,
|
||||
enabledByDefault ? true
|
||||
} : lib.mkOption {
|
||||
type = lib.types.submodule {
|
||||
options = {
|
||||
enable = lib.mkOption {
|
||||
type = lib.types.bool;
|
||||
default = enabledByDefault;
|
||||
};
|
||||
host = lib.mkOption {
|
||||
type = lib.types.str;
|
||||
default = defaultHost;
|
||||
makeCommonOption =
|
||||
{ defaultHost
|
||||
, enabledByDefault ? true
|
||||
}: lib.mkOption {
|
||||
type = lib.types.submodule {
|
||||
options = {
|
||||
enable = lib.mkOption {
|
||||
type = lib.types.bool;
|
||||
default = enabledByDefault;
|
||||
};
|
||||
host = lib.mkOption {
|
||||
type = lib.types.str;
|
||||
default = defaultHost;
|
||||
};
|
||||
};
|
||||
};
|
||||
default = {
|
||||
enable = enabledByDefault;
|
||||
host = defaultHost;
|
||||
};
|
||||
};
|
||||
default = {
|
||||
enable = enabledByDefault;
|
||||
host = defaultHost;
|
||||
};
|
||||
};
|
||||
in
|
||||
{
|
||||
options = {
|
||||
@@ -77,7 +77,7 @@ in
|
||||
};
|
||||
|
||||
fileSystems."/homelab/bigbox2/data/fourTerra" = lib.mkIf cfg.bigBox2.enable {
|
||||
device = "${cfg.terra1.host}:/data/fourTerra";
|
||||
device = "${cfg.bigBox2.host}:/data/fourTerra";
|
||||
fsType = "nfs";
|
||||
options = cfg.options;
|
||||
};
|
||||
|
||||
@@ -58,8 +58,8 @@
|
||||
services.cron = {
|
||||
enable = true;
|
||||
systemCronJobs = [
|
||||
"* 23 * * * root nix-collect-garbage --delete-older-than 7d"
|
||||
"* 23 * * * ${config.skyg.user.name} nix-collect-garbage --delete-older-than 7d"
|
||||
"0 23 * * * root nix-collect-garbage --delete-older-than 7d"
|
||||
"0 23 * * * ${config.skyg.user.name} nix-collect-garbage --delete-older-than 7d"
|
||||
];
|
||||
};
|
||||
}
|
||||
@@ -23,7 +23,7 @@ in {
|
||||
type = types.str;
|
||||
};
|
||||
|
||||
metadtaDir = mkOption {
|
||||
metadataDir = mkOption {
|
||||
description =
|
||||
"Path to Audiobookshelf config folder";
|
||||
type = types.str;
|
||||
@@ -80,7 +80,7 @@ in {
|
||||
ExecStart =
|
||||
"${cfg.package}/bin/audiobookshelf --host ${cfg.host} --port ${
|
||||
toString cfg.port
|
||||
} --config ${cfg.configDir} --metadata ${cfg.metadtaDir}";
|
||||
} --config ${cfg.configDir} --metadata ${cfg.metadataDir}";
|
||||
Restart = "on-failure";
|
||||
};
|
||||
};
|
||||
|
||||
Reference in new issue
Block a user