Restructure conditionals on desktop in homes

Former-commit-id: b0c972f5b3
This commit is contained in:
Kaare Hoff Skovgaard 2025-07-15 08:22:59 +02:00
parent a5384c8105
commit 3c3e33b075
3 changed files with 16 additions and 8 deletions

View file

@ -1,10 +1,8 @@
{
lib,
config,
...
}:
{
khscodes.khs.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;
home.packages = [
pkgs,
lib,
config,
...
}:
{
imports = [ ./linux-desktop.nix ];
home.packages = lib.mkIf config.khscodes.desktop.enable [
pkgs.bitwarden-cli
pkgs.nerd-fonts.inconsolata
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 ];
}