nixos: remove unnecessary if..then..else.. statements

This commit is contained in:
Wroclaw 2024-08-08 05:06:10 +02:00
parent 6f5829e6ab
commit 375a3f379e
2 changed files with 4 additions and 9 deletions

View file

@ -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; [

View file

@ -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"
];
};