qenya: don't depend on nixos modules defined here

fixes build issue in randomcat's repo
This commit is contained in:
Katherina Walshe-Grey 2024-10-15 18:03:12 +01:00
parent 8823cd9b36
commit 21fa41876a
3 changed files with 6 additions and 3 deletions

View file

@ -2,9 +2,10 @@
let
inherit (lib) mkIf;
isGraphical = osConfig.services.xserver.enable;
in
{
programs.firefox = lib.mkIf osConfig.qenya.base-graphical.enable {
programs.firefox = lib.mkIf isGraphical {
enable = true;
# coming in 24.11

View file

@ -2,6 +2,7 @@
let
inherit (lib) optionals;
isGraphical = osConfig.services.xserver.enable;
in
{
home.packages = with pkgs; [
@ -12,7 +13,7 @@ in
fortune
cowsay
lolcat
] ++ optionals osConfig.qenya.base-graphical.enable [
] ++ optionals isGraphical [
bitwarden
discord
feishin

View file

@ -2,9 +2,10 @@
let
inherit (lib) mkIf;
isGraphical = osConfig.services.xserver.enable;
in
{
programs.vscode = mkIf osConfig.qenya.base-graphical.enable {
programs.vscode = mkIf isGraphical {
enable = true;
enableExtensionUpdateCheck = false;
enableUpdateCheck = false;