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 let
inherit (lib) mkIf; inherit (lib) mkIf;
isGraphical = osConfig.services.xserver.enable;
in in
{ {
programs.firefox = lib.mkIf osConfig.qenya.base-graphical.enable { programs.firefox = lib.mkIf isGraphical {
enable = true; enable = true;
# coming in 24.11 # coming in 24.11

View file

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

View file

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