nixos: remove unnecessary if..then..else.. statements
This commit is contained in:
parent
6f5829e6ab
commit
375a3f379e
2 changed files with 4 additions and 9 deletions
|
@ -1,4 +1,4 @@
|
|||
{ config, pkgs, unstablePkgs, ... }:
|
||||
{ config, lib, pkgs, unstablePkgs, ... }:
|
||||
|
||||
{
|
||||
imports = [
|
||||
|
@ -11,8 +11,7 @@
|
|||
extraGroups = [
|
||||
"users"
|
||||
"wheel"
|
||||
(if config.programs.adb.enable then "adbusers" else null)
|
||||
];
|
||||
] ++ lib.optional config.programs.adb.enable "adbusers";
|
||||
linger = true;
|
||||
initialPassword = "nixos";
|
||||
packages = with pkgs; [
|
||||
|
|
|
@ -65,15 +65,11 @@
|
|||
"color-picker@tuberry"
|
||||
];
|
||||
favorite-apps = [
|
||||
(if builtins.elem pkgs.kitty config.environment.systemPackages then
|
||||
"kitty.desktop"
|
||||
else none)
|
||||
"vivaldi-stable.desktop"
|
||||
"code.desktop"
|
||||
"org.gnome.Nautilus.desktop"
|
||||
(if config.programs.steam.enable then
|
||||
"steam.desktop"
|
||||
else none)
|
||||
"pavucontrol.desktop"
|
||||
];
|
||||
};
|
||||
|
|
Loading…
Reference in a new issue