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,
|
||||
...
|
||||
}:
|
||||
# let
|
||||
# isServer = config.xlib.device.type == "server";
|
||||
# in
|
||||
let
|
||||
xlib.device.type = config.xlib.device.type;
|
||||
# isServer = config.xlib.device.type == "server";
|
||||
in
|
||||
{
|
||||
|
||||
_module.args.deviceType = config.xlib.device.type or "none";
|
||||
|
||||
imports = with inputs; [
|
||||
./essentials
|
||||
./users.nix
|
||||
./options.nix
|
||||
#./overlays.nix
|
||||
./temp.nix
|
||||
../nixosModules/server.nix
|
||||
./type.nix
|
||||
#(./. + "/${deviceType}") # specific modules
|
||||
|
||||
home-manager.nixosModules.home-manager # home-manager 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;
|
||||
services.immich.package = lib.mkIf (
|
||||
|
||||
Reference in New Issue
Block a user