More opt
Some checks failed
Nix Build / build-nixos (push) Failing after 21s

This commit is contained in:
soraefir 2024-04-16 01:28:24 +02:00
parent e0b1be56a2
commit a1c6b056e0
Signed by: sora
GPG Key ID: A362EA0491E2EEA0
8 changed files with 94 additions and 75 deletions

View File

@ -1,7 +1,5 @@
{ lib, config, pkgs, ... }: { lib, config, pkgs, ... }: {
let cfg = config.syscfg.make.gui; config = lib.mkIf (config.syscfg.make.gui) {
in {
config = lib.mkIf cfg {
services.xserver = { services.xserver = {
enable = true; enable = true;
videoDrivers = [ "amd" ]; videoDrivers = [ "amd" ];

View File

@ -1,5 +1,7 @@
{ pkgs, ... }: { { pkgs, ... }: {
config = lib.mkIf (config.syscfg.net.ble.enable) {
hardware.bluetooth.enable = true; hardware.bluetooth.enable = true;
services.blueman.enable = true; services.blueman.enable = true;
environment.systemPackages = with pkgs; [ bluez bluez-tools ]; environment.systemPackages = with pkgs; [ bluez bluez-tools ];
};
} }

View File

@ -1,5 +1,5 @@
{ config, lib, pkgs, ... }: { { config, lib, pkgs, ... }: {
config = lib.mkIf (config.syscfg.make.gui) {
xdg.portal = { xdg.portal = {
enable = true; enable = true;
# wlr.enable = true; # wlr.enable = true;
@ -57,4 +57,5 @@
XDG_TEMPLATES_DIR="$HOME/media/templates" XDG_TEMPLATES_DIR="$HOME/media/templates"
XDG_VIDEOS_DIR="$HOME/media/video" XDG_VIDEOS_DIR="$HOME/media/video"
''; '';
};
} }

View File

@ -1,4 +1,4 @@
{ ... }: { ... }:
{ {
virtualisation.arion.projects.
} }

View File

@ -1,4 +1,4 @@
{ pkgs, ... }:{ { pkgs, ... }: {
project.name = "Authentik"; project.name = "Authentik";
networks = { networks = {

View File

@ -1,4 +1,4 @@
{ pkgs, ... }:{ { pkgs, ... }: {
project.name = "Cloud"; project.name = "Cloud";
networks = { networks = {

View File

@ -1,4 +1,4 @@
{ pkgs, ... }:{ { pkgs, ... }: {
project.name = "NEW"; project.name = "NEW";
networks = { networks = {

View File

@ -13,6 +13,12 @@ let
}; };
}; };
netOpt = with lib; { netOpt = with lib; {
ble = {
enable = mkOption {
type = types.bool;
default = false;
};
};
wlp = { wlp = {
enable = mkOption { enable = mkOption {
type = types.bool; type = types.bool;
@ -65,15 +71,27 @@ let
}; };
}; };
serverOpt = with lib; { serverOpt = with lib; {
hostDomain = mkOption {type = types.str;}; hostDomain = mkOption { type = types.str; };
mailDomain = mkOption {type = types.str;}; mailDomain = mkOption { type = types.str; };
mailServer = mkOption {type = types.str;}; mailServer = mkOption { type = types.str; };
dbHost = mkOption {type = types.str; default = "localhost";}; dbHost = mkOption {
dbPort = mkOption {type = types.str; default = "3306";}; type = types.str;
default = "localhost";
};
dbPort = mkOption {
type = types.str;
default = "3306";
};
configPath = mkOption {type=types.str; default= "/media/config";}; configPath = mkOption {
dataPath = mkOption {type=types.str; default= "/media/data";}; type = types.str;
default = "/media/config";
};
dataPath = mkOption {
type = types.str;
default = "/media/data";
};
}; };
in with lib; { in with lib; {