From 2dd71c73672407cc2c05fc7d8bf3e36e093fc145 Mon Sep 17 00:00:00 2001 From: oqyude Date: Wed, 6 Aug 2025 14:26:45 +0300 Subject: [PATCH] 123 --- modules/default.nix | 4 +++- modules/server/default.nix | 8 +++++--- modules/server/stirling-pdf.nix | 14 ++++++-------- 3 files changed, 14 insertions(+), 12 deletions(-) diff --git a/modules/default.nix b/modules/default.nix index e28fc13..2892453 100755 --- a/modules/default.nix +++ b/modules/default.nix @@ -1,15 +1,17 @@ { inputs, ... }@flakeContext: { + config, lib, ... }: { imports = with inputs; [ ./essentials + ./server ./users.nix ./options.nix ./temp.nix - (lib.mkIf (config.xlib.device.type == "server") (import ./server { inherit inputs; })) + #(lib.mkIf (config.xlib.device.type == "server") (import ./server { inherit inputs config lib pkgs ; })) home-manager.nixosModules.home-manager # home-manager module nix-index-database.nixosModules.nix-index # nix-index module diff --git a/modules/server/default.nix b/modules/server/default.nix index 7bdcc5a..1555c67 100644 --- a/modules/server/default.nix +++ b/modules/server/default.nix @@ -1,8 +1,10 @@ { + config, + lib, ... }: { - imports = [ - ./stirling-pdf.nix - ]; + config = lib.mkIf (config.xlib.device.type == "server") { + imports = [ ./stirling-pdf.nix ]; + }; } diff --git a/modules/server/stirling-pdf.nix b/modules/server/stirling-pdf.nix index 14019c9..70afb2d 100644 --- a/modules/server/stirling-pdf.nix +++ b/modules/server/stirling-pdf.nix @@ -1,16 +1,14 @@ { - inputs, config, lib, - pkgs, ... }: -let - fix = import inputs.nixpkgs-last-unstable { - system = "x86_64-linux"; - config.allowUnfree = true; - }; # temp -in +# let +# fix = import inputs.nixpkgs-last-unstable { +# system = "x86_64-linux"; +# config.allowUnfree = true; +# }; # temp +# in { services.stirling-pdf = { enable = true;