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

This commit is contained in:
soraefir 2024-04-14 22:45:21 +02:00
parent ad1c8a0026
commit 0920a1381d
Signed by: sora
GPG Key ID: A362EA0491E2EEA0
10 changed files with 132 additions and 130 deletions

View File

@ -1,5 +1,4 @@
{ lib, config, pkgs, ... }: { lib, config, pkgs, ... }: {
{
config = lib.mkIf (config.syscfg.make.gui) { config = lib.mkIf (config.syscfg.make.gui) {
services.greetd = { services.greetd = {

View File

@ -1,4 +1,7 @@
{ ... }: { { lib, config, ... }:
let isCI = builtins.elem config.syscfg.hostname [ "ci" "sandbox" ];
in {
config = lib.mkIf (!isCI) {
boot.loader = { boot.loader = {
systemd-boot = { systemd-boot = {
enable = true; enable = true;
@ -9,4 +12,5 @@
efiSysMountPoint = "/boot/efi"; efiSysMountPoint = "/boot/efi";
}; };
}; };
};
} }

View File

@ -1,7 +1,5 @@
{ lib, config, pkgs, ... }: { lib, config, pkgs, ... }: {
let cfg = config.syscfg.make.power; config = lib.mkIf (config.syscfg.make.power) {
in {
config = lib.mkIf cfg {
services.tlp = { services.tlp = {
enable = true; enable = true;
settings = { settings = {

View File

@ -1,11 +1,9 @@
{ lib, config, pkgs, ... }: { lib, config, pkgs, ... }: {
let cfg = config.syscfg.make.virt; config = lib.mkIf (config.syscfg.make.virt) {
in {
config = lib.mkIf cfg {
environment.systemPackages = [ pkgs.qemu ]; #environment.systemPackages = [ pkgs.qemu ];
virtualisation = { virtualisation = {
libvirtd.enable = true; #libvirtd.enable = true;
# waydroid.enable = true; # waydroid.enable = true;
# lxd.enable = true; # lxd.enable = true;
docker = { docker = {

View File

@ -1,9 +1,7 @@
{ lib, config, ... }: { lib, config, ... }: {
let cfg = config.syscfg.net.wlp; config = lib.mkIf (config.syscfg.net.wlp.enable) {
in {
config = lib.mkIf cfg.enable {
networking.supplicant = { networking.supplicant = {
"${cfg.nif}" = { "${config.syscfg.net.wlp.nif}" = {
configFile.path = config.sops.secrets.wifi.path; configFile.path = config.sops.secrets.wifi.path;
extraConf = '' extraConf = ''
network={ network={

View File

@ -1,4 +1,5 @@
{ config, ... }: { { config, lib, ... }: {
config = lib.mkIf (config.syscfg.net.wg.enable) {
networking.wireguard = { networking.wireguard = {
enable = true; enable = true;
interfaces = { interfaces = {
@ -17,4 +18,5 @@
}; };
}; };
}; };
};
} }

View File

@ -1,6 +1,9 @@
{ pkgs, config, ... }: { { pkgs, config, lib, ... }: {
config = lib.mkIf (config.syscfg.make.develop) {
programs.adb.enable = true; programs.adb.enable = true;
programs.wireshark.enable = true; programs.wireshark.enable = true;
environment.systemPackages = with pkgs; [ wget dconf wireshark ]; environment.systemPackages = with pkgs; [ wget dconf wireshark ];
};
} }