Added common desktop attributes
This commit is contained in:
parent
a99fd23960
commit
569426933f
71
roles/desktop_common.nix
Normal file
71
roles/desktop_common.nix
Normal file
|
@ -0,0 +1,71 @@
|
|||
# Common configuration for MIO desktops
|
||||
|
||||
{ config, pkgs, ... }:
|
||||
|
||||
{
|
||||
imports =
|
||||
[
|
||||
../roles/games-kids.nix
|
||||
../roles/host_common.nix
|
||||
../roles/openssh.nix
|
||||
../secrets/user-craige.nix
|
||||
../secrets/user-hamish.nix
|
||||
../secrets/user-logan.nix
|
||||
../secrets/user-root.nix
|
||||
../secrets/user-xander.nix
|
||||
];
|
||||
|
||||
# Common Desktop Packages
|
||||
environment.systemPackages = with pkgs; [
|
||||
chromium
|
||||
digikam
|
||||
firefoxWrapper # install Firefox with support for plugins
|
||||
libreoffice-fresh
|
||||
plasma-workspace-wallpapers
|
||||
user-manager
|
||||
];
|
||||
|
||||
programs.ssh.startAgent = true;
|
||||
|
||||
networking.networkmanager.enable = true; # Enables network support via NetworkManager.
|
||||
|
||||
# Enable common desktop services
|
||||
services.acpid.enable = true;
|
||||
powerManagement.enable = true;
|
||||
|
||||
services.xserver.enable = true;
|
||||
services.xserver.libinput.enable = true; # Enable touchpad support.
|
||||
services.xserver.displayManager.sddm.enable = true; # Enable SDDM
|
||||
services.xserver.desktopManager.plasma5.enable = true; # Enable KDE
|
||||
|
||||
sound.enable = true; # Enable sound.
|
||||
hardware.pulseaudio = {
|
||||
enable = true;
|
||||
package = pkgs.pulseaudioFull;
|
||||
};
|
||||
hardware.bluetooth.enable = true; # Enable bluetooth
|
||||
hardware.bluetooth.extraConfig = "
|
||||
[General]
|
||||
Enable=Source,Sink,Media,Socket
|
||||
";
|
||||
|
||||
# Configure Firefox and Chromium
|
||||
nixpkgs.config = {
|
||||
allowUnfree = true;
|
||||
firefox = {
|
||||
enableGoogleTalkPlugin = true;
|
||||
enableAdobeFlash = false;
|
||||
};
|
||||
chromium = {
|
||||
enablePepperFlash = false; # Chromium's non-NSAPI alternative to Adobe Flash
|
||||
};
|
||||
};
|
||||
|
||||
programs = {
|
||||
chromium = {
|
||||
enable = true;
|
||||
homepageLocation = "https://start.duckduckgo.com/";
|
||||
};
|
||||
};
|
||||
|
||||
}
|
Loading…
Reference in a new issue