Restructure conditionals on desktop in homes
Former-commit-id: b0c972f5b3
This commit is contained in:
parent
a5384c8105
commit
3c3e33b075
3 changed files with 16 additions and 8 deletions
|
@ -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 ];
|
||||||
}
|
}
|
||||||
|
|
|
@ -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
|
||||||
|
|
|
@ -1,4 +1,9 @@
|
||||||
{ pkgs, ... }:
|
|
||||||
{
|
{
|
||||||
home.packages = [ pkgs.spotify ];
|
pkgs,
|
||||||
|
config,
|
||||||
|
lib,
|
||||||
|
...
|
||||||
|
}:
|
||||||
|
{
|
||||||
|
home.packages = lib.mkIf config.khscodes.desktop.enable [ pkgs.spotify ];
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue