From 1a64ee07aaa872b36d1dc557101624a9f577a7f8 Mon Sep 17 00:00:00 2001 From: Aaron Bieber Date: Wed, 5 Jul 2023 05:53:26 -0600 Subject: [PATCH] europa: add specialization for fun \o/ --- configs/ci.nix | 2 +- gui/arcan.nix | 5 ++--- hosts/europa/default.nix | 27 ++++++++++++++++++++++----- 3 files changed, 25 insertions(+), 9 deletions(-) diff --git a/configs/ci.nix b/configs/ci.nix index 0552420..8c303ac 100644 --- a/configs/ci.nix +++ b/configs/ci.nix @@ -80,7 +80,7 @@ in with lib; { systemd.services = lib.listToAttrs (builtins.map xinlib.jobToService jobs); - services.cron = prIsOpen.option 238971 { + services.cron = prIsOpen.option 238971 { enable = true; systemCronJobs = [ "0 0 * * * systemctl start xin-ci-update" diff --git a/gui/arcan.nix b/gui/arcan.nix index aaf1d50..bbda08b 100644 --- a/gui/arcan.nix +++ b/gui/arcan.nix @@ -1,11 +1,10 @@ { config, lib, pkgs, ... }: -let myArcan = pkgs.arcanPackages or pkgs.arcan; -in with lib; { +with lib; { options = { arcan = { enable = mkEnableOption "Enable Arcan/Durden desktop."; }; }; config = mkIf config.arcan.enable { - environment.systemPackages = with pkgs; [ myArcan.all-wrapped ]; + environment.systemPackages = with pkgs; [ arcanPackages.all-wrapped ]; }; } diff --git a/hosts/europa/default.nix b/hosts/europa/default.nix index 93570bb..2b153be 100644 --- a/hosts/europa/default.nix +++ b/hosts/europa/default.nix @@ -33,6 +33,23 @@ let in { _module.args.isUnstable = true; + specialisation = { + arcan = { + configuration = { + system.nixos.tags = [ "arcan" ]; + kde.enable = false; + sshFidoAgent.enable = false; + nixManager = { enable = false; }; + + jetbrains.enable = false; + + programs = { }; + + virtualisation.libvirtd.enable = false; + }; + }; + }; + imports = [ ./hardware-configuration.nix ../../pkgs ../../configs/neomutt.nix ]; @@ -96,17 +113,17 @@ in { #kernelPackages = pkgs.linuxPackages; }; - sshFidoAgent.enable = true; + sshFidoAgent.enable = lib.mkDefault true; nixManager = { - enable = true; + enable = lib.mkDefault true; user = "qbit"; }; - kde.enable = true; - jetbrains.enable = true; + kde.enable = lib.mkDefault true; + jetbrains.enable = lib.mkDefault true; - virtualisation.libvirtd.enable = true; + virtualisation.libvirtd.enable = lib.mkDefault true; networking = { hostName = "europa";