mirror of
https://github.com/oqyude/nixos.git
synced 2026-06-11 04:30:41 +03:00
123
This commit is contained in:
+10
-5
@@ -4,23 +4,28 @@
|
|||||||
lib,
|
lib,
|
||||||
...
|
...
|
||||||
}:
|
}:
|
||||||
# let
|
let
|
||||||
# isServer = config.xlib.device.type == "server";
|
xlib.device.type = config.xlib.device.type;
|
||||||
# in
|
# isServer = config.xlib.device.type == "server";
|
||||||
|
in
|
||||||
{
|
{
|
||||||
|
|
||||||
|
_module.args.deviceType = config.xlib.device.type or "none";
|
||||||
|
|
||||||
imports = with inputs; [
|
imports = with inputs; [
|
||||||
./essentials
|
./essentials
|
||||||
./users.nix
|
./users.nix
|
||||||
./options.nix
|
./options.nix
|
||||||
#./overlays.nix
|
#./overlays.nix
|
||||||
./temp.nix
|
./temp.nix
|
||||||
../nixosModules/server.nix
|
./type.nix
|
||||||
|
#(./. + "/${deviceType}") # specific modules
|
||||||
|
|
||||||
home-manager.nixosModules.home-manager # home-manager module
|
home-manager.nixosModules.home-manager # home-manager module
|
||||||
nix-index-database.nixosModules.nix-index # nix-index module
|
nix-index-database.nixosModules.nix-index # nix-index module
|
||||||
];
|
];
|
||||||
|
|
||||||
server.enable = (config.xlib.device.type == "server");
|
#server.enable = (config.xlib.device.type == "server");
|
||||||
|
|
||||||
_module.args.inputs = inputs;
|
_module.args.inputs = inputs;
|
||||||
services.immich.package = lib.mkIf (
|
services.immich.package = lib.mkIf (
|
||||||
|
|||||||
Executable
+10
@@ -0,0 +1,10 @@
|
|||||||
|
{
|
||||||
|
config,
|
||||||
|
lib,
|
||||||
|
...
|
||||||
|
}:
|
||||||
|
{
|
||||||
|
imports = [
|
||||||
|
./stirling-pdf.nix
|
||||||
|
];
|
||||||
|
}
|
||||||
Executable
+29
@@ -0,0 +1,29 @@
|
|||||||
|
{
|
||||||
|
config,
|
||||||
|
lib,
|
||||||
|
pkgs,
|
||||||
|
...
|
||||||
|
}:
|
||||||
|
# let
|
||||||
|
# customPackage = pkgs.stirling-pdf.overrideAttrs (oldAttrs: {
|
||||||
|
# src = pkgs.fetchFromGitHub {
|
||||||
|
# owner = "Stirling-Tools";
|
||||||
|
# repo = "Stirling-PDF";
|
||||||
|
# rev = "v1.1.1";
|
||||||
|
# sha256 = "0sphh65fdccnajdby9idy5w4zhcnxzzppv2d7zdz203d0lqs6hky";
|
||||||
|
# };
|
||||||
|
# version = "1.1.1";
|
||||||
|
# });
|
||||||
|
# in
|
||||||
|
|
||||||
|
# lib.mkIf (config.xlib.device.type == "server")
|
||||||
|
|
||||||
|
{
|
||||||
|
services.stirling-pdf = {
|
||||||
|
enable = true;
|
||||||
|
#package = customPackage;
|
||||||
|
environment = {
|
||||||
|
SERVER_PORT = 6060;
|
||||||
|
};
|
||||||
|
};
|
||||||
|
}
|
||||||
Executable
+10
@@ -0,0 +1,10 @@
|
|||||||
|
{
|
||||||
|
config,
|
||||||
|
deviceType,
|
||||||
|
...
|
||||||
|
}:
|
||||||
|
{
|
||||||
|
imports = [
|
||||||
|
(./. + "/${deviceType}") # specific modules
|
||||||
|
];
|
||||||
|
}
|
||||||
Reference in New Issue
Block a user