mirror of
https://github.com/oqyude/nixos.git
synced 2026-06-15 06:30:10 +03:00
mad
This commit is contained in:
+4
-9
@@ -2,24 +2,18 @@
|
||||
{
|
||||
config,
|
||||
lib,
|
||||
xlib,
|
||||
deviceType,
|
||||
...
|
||||
}:
|
||||
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
|
||||
./type.nix
|
||||
#(./. + "/${deviceType}") # specific modules
|
||||
(./. + "/${deviceType}") # specific modules
|
||||
|
||||
home-manager.nixosModules.home-manager # home-manager module
|
||||
nix-index-database.nixosModules.nix-index # nix-index module
|
||||
@@ -28,6 +22,7 @@ in
|
||||
#server.enable = (config.xlib.device.type == "server");
|
||||
|
||||
_module.args.inputs = inputs;
|
||||
_module.args.xlib = config.xlib;
|
||||
services.immich.package = lib.mkIf (
|
||||
config.xlib.device.type == "server"
|
||||
) inputs.self.packages.x86_64-linux.immich;
|
||||
|
||||
@@ -1,7 +0,0 @@
|
||||
{
|
||||
pkgs,
|
||||
...
|
||||
}:
|
||||
{
|
||||
nixpkgs.overlays = [ (import ../overlays/immich) ];
|
||||
}
|
||||
@@ -1,10 +0,0 @@
|
||||
{
|
||||
config,
|
||||
deviceType,
|
||||
...
|
||||
}:
|
||||
{
|
||||
imports = [
|
||||
(./. + "/${deviceType}") # specific modules
|
||||
];
|
||||
}
|
||||
+2
-1
@@ -1,5 +1,6 @@
|
||||
{
|
||||
config,
|
||||
xlib,
|
||||
...
|
||||
}:
|
||||
{
|
||||
@@ -7,7 +8,7 @@
|
||||
|
||||
users = {
|
||||
users = {
|
||||
"${config.xlib.device.username}" = {
|
||||
"${xlib.device.username}" = {
|
||||
isNormalUser = true;
|
||||
description = "Jor Oqyude";
|
||||
initialPassword = "1234";
|
||||
|
||||
Reference in New Issue
Block a user