Restructure conditionals on desktop in homes
Some checks failed
/ terraform-providers (push) Successful in 30s
/ systems (push) Failing after 1m42s
/ dev-shell (push) Successful in 26s
/ rust-packages (push) Successful in 32s
/ check (push) Failing after 1m11s

This commit is contained in:
Kaare Hoff Skovgaard 2025-07-15 08:22:59 +02:00
parent 80af3c16e5
commit b0c972f5b3
Signed by: khs
GPG key ID: C7D890804F01E9F0
3 changed files with 16 additions and 8 deletions

View file

@ -1,10 +1,8 @@
{ {
lib,
config,
... ...
}: }:
{ {
khscodes.khs.enable = true; khscodes.khs.enable = true;
khscodes.khs.shell.oh-my-posh.enable = true; khscodes.khs.shell.oh-my-posh.enable = true;
imports = lib.lists.optional config.khscodes.desktop.enable ./desktop.nix; imports = [ ./desktop.nix ];
} }

View file

@ -1,7 +1,12 @@
{ pkgs, lib, ... }:
{ {
imports = lib.lists.optional (lib.strings.hasSuffix "-linux" pkgs.system) ./linux-desktop.nix; pkgs,
home.packages = [ lib,
config,
...
}:
{
imports = [ ./linux-desktop.nix ];
home.packages = lib.mkIf config.khscodes.desktop.enable [
pkgs.bitwarden-cli pkgs.bitwarden-cli
pkgs.nerd-fonts.inconsolata pkgs.nerd-fonts.inconsolata
pkgs.google-chrome pkgs.google-chrome

View file

@ -1,4 +1,9 @@
{ pkgs, ... }:
{ {
home.packages = [ pkgs.spotify ]; pkgs,
config,
lib,
...
}:
{
home.packages = lib.mkIf config.khscodes.desktop.enable [ pkgs.spotify ];
} }