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 = [
|
imports = [
|
||||||
|
@ -11,8 +11,7 @@
|
||||||
extraGroups = [
|
extraGroups = [
|
||||||
"users"
|
"users"
|
||||||
"wheel"
|
"wheel"
|
||||||
(if config.programs.adb.enable then "adbusers" else null)
|
] ++ lib.optional config.programs.adb.enable "adbusers";
|
||||||
];
|
|
||||||
linger = true;
|
linger = true;
|
||||||
initialPassword = "nixos";
|
initialPassword = "nixos";
|
||||||
packages = with pkgs; [
|
packages = with pkgs; [
|
||||||
|
|
|
@ -65,15 +65,11 @@
|
||||||
"color-picker@tuberry"
|
"color-picker@tuberry"
|
||||||
];
|
];
|
||||||
favorite-apps = [
|
favorite-apps = [
|
||||||
(if builtins.elem pkgs.kitty config.environment.systemPackages then
|
|
||||||
"kitty.desktop"
|
"kitty.desktop"
|
||||||
else none)
|
|
||||||
"vivaldi-stable.desktop"
|
"vivaldi-stable.desktop"
|
||||||
"code.desktop"
|
"code.desktop"
|
||||||
"org.gnome.Nautilus.desktop"
|
"org.gnome.Nautilus.desktop"
|
||||||
(if config.programs.steam.enable then
|
|
||||||
"steam.desktop"
|
"steam.desktop"
|
||||||
else none)
|
|
||||||
"pavucontrol.desktop"
|
"pavucontrol.desktop"
|
||||||
];
|
];
|
||||||
};
|
};
|
||||||
|
|
Loading…
Reference in a new issue