base: put common GUI programs behind option
This commit is contained in:
parent
d362c10c1d
commit
b9f088c656
|
@ -1,6 +1,7 @@
|
|||
{ ... }:
|
||||
{
|
||||
imports = [
|
||||
./gui-programs.nix
|
||||
./networking.nix
|
||||
./nix.nix
|
||||
./programs.nix
|
||||
|
|
|
@ -1,31 +1,35 @@
|
|||
{ pkgs, ... }:
|
||||
{ pkgs, lib, config, ... }:
|
||||
{
|
||||
environment.systemPackages = with pkgs; [
|
||||
element-desktop
|
||||
feh
|
||||
firefox
|
||||
ffmpeg
|
||||
gimp
|
||||
gnome.nautilus
|
||||
imagemagick
|
||||
mpv
|
||||
obs-studio
|
||||
pavucontrol
|
||||
slack
|
||||
spotify
|
||||
tdesktop
|
||||
teams
|
||||
thunderbird
|
||||
virt-manager
|
||||
zathura
|
||||
options.my.gui.enable = lib.mkEnableOption "System has some kind of screen attached";
|
||||
|
||||
unstable.discord
|
||||
];
|
||||
config = lib.mkIf config.my.gui.enable {
|
||||
environment.systemPackages = with pkgs; [
|
||||
element-desktop
|
||||
feh
|
||||
firefox
|
||||
ffmpeg
|
||||
gimp
|
||||
gnome.nautilus
|
||||
imagemagick
|
||||
mpv
|
||||
obs-studio
|
||||
pavucontrol
|
||||
slack
|
||||
spotify
|
||||
tdesktop
|
||||
teams
|
||||
thunderbird
|
||||
virt-manager
|
||||
zathura
|
||||
|
||||
networking.networkmanager.enable = true;
|
||||
programs.nm-applet.enable = true;
|
||||
programs.steam.enable = true;
|
||||
unstable.discord
|
||||
];
|
||||
|
||||
# NOTE: needed for home emacs configuration
|
||||
nixpkgs.config.input-fonts.acceptLicense = true;
|
||||
networking.networkmanager.enable = true;
|
||||
programs.nm-applet.enable = true;
|
||||
programs.steam.enable = true;
|
||||
|
||||
# NOTE: needed for home emacs configuration
|
||||
nixpkgs.config.input-fonts.acceptLicense = true;
|
||||
};
|
||||
}
|
||||
|
|
|
@ -3,7 +3,6 @@
|
|||
imports = [
|
||||
# Default configuration
|
||||
./base
|
||||
./base/gui-programs.nix
|
||||
|
||||
# Module definitions
|
||||
./modules
|
||||
|
|
|
@ -102,6 +102,7 @@ in
|
|||
};
|
||||
};
|
||||
my.displayManager.sddm.enable = true;
|
||||
my.gui.enable = true;
|
||||
|
||||
my.wakeonwlan.interfaces.phy0.methods = [
|
||||
"magic-packet"
|
||||
|
|
|
@ -62,6 +62,7 @@ in
|
|||
fwupd.enable = true;
|
||||
};
|
||||
my.displayManager.sddm.enable = true;
|
||||
my.gui.enable = true;
|
||||
|
||||
environment.systemPackages = with pkgs; [
|
||||
arandr
|
||||
|
|
|
@ -3,7 +3,6 @@
|
|||
imports = [
|
||||
# Default configuration
|
||||
./base
|
||||
./base/gui-programs.nix
|
||||
|
||||
# Module definitions
|
||||
./modules
|
||||
|
|
Loading…
Reference in a new issue