2019-12-10 14:43:41 +00:00
|
|
|
# Common configuration for MIO desktops
|
|
|
|
|
|
|
|
{ config, pkgs, ... }:
|
|
|
|
|
|
|
|
{
|
|
|
|
imports =
|
|
|
|
[
|
2021-03-03 05:52:21 +00:00
|
|
|
../profiles/games-kids.nix
|
|
|
|
../profiles/host_common.nix
|
|
|
|
../profiles/daedalus.nix
|
|
|
|
../profiles/openssh.nix
|
2021-05-09 06:34:31 +00:00
|
|
|
../profiles/powerManagement.nix
|
2019-12-10 14:43:41 +00:00
|
|
|
../secrets/user-craige.nix
|
2019-12-12 23:02:14 +00:00
|
|
|
../secrets/user-fiona.nix
|
2019-12-10 14:43:41 +00:00
|
|
|
../secrets/user-hamish.nix
|
|
|
|
../secrets/user-logan.nix
|
|
|
|
../secrets/user-root.nix
|
|
|
|
../secrets/user-xander.nix
|
|
|
|
];
|
|
|
|
|
|
|
|
# Common Desktop Packages
|
|
|
|
environment.systemPackages = with pkgs; [
|
2020-03-30 02:09:59 +00:00
|
|
|
brave # Privacy-oriented browser
|
2019-12-10 14:43:41 +00:00
|
|
|
chromium
|
2020-12-31 01:55:41 +00:00
|
|
|
element-desktop # A feature-rich client for Matrix.org
|
2019-12-17 00:31:15 +00:00
|
|
|
firefoxWrapper # install Firefox with support for plugins
|
2021-06-04 00:32:51 +00:00
|
|
|
gnome.gnome-tweaks # A tool to customize advanced GNOME 3 options
|
2021-01-23 08:22:11 +00:00
|
|
|
google-chrome # A freeware web browser developed by Google
|
2019-12-10 14:43:41 +00:00
|
|
|
libreoffice-fresh
|
2020-01-06 00:45:20 +00:00
|
|
|
mplayer # A movie player that supports many video formats
|
2021-01-23 08:22:11 +00:00
|
|
|
nextcloud-client # Nextcloud desktop client
|
2021-01-23 08:31:48 +00:00
|
|
|
pwgen # Password generator
|
2020-01-24 05:40:54 +00:00
|
|
|
shotwell # Photo organizer
|
2021-01-23 08:31:48 +00:00
|
|
|
signal-desktop # Private, simple, and secure messenger
|
2020-01-24 05:40:54 +00:00
|
|
|
usbutils # Tools for working with USB devices, such as lsusb
|
|
|
|
xorg.libxcb # X C binding
|
2019-12-10 14:43:41 +00:00
|
|
|
];
|
|
|
|
|
|
|
|
networking.networkmanager.enable = true; # Enables network support via NetworkManager.
|
|
|
|
|
|
|
|
# Enable common desktop services
|
2020-04-21 08:23:43 +00:00
|
|
|
services = {
|
|
|
|
acpid.enable = true; # A daemon for delivering ACPI events to userspace programs
|
|
|
|
blueman.enable = true; # GTK-based Bluetooth Manager
|
|
|
|
devmon.enable = true; # Enable external device automounting.`
|
|
|
|
udev.packages = [
|
|
|
|
pkgs.android-udev-rules # Android udev rules list
|
|
|
|
];
|
|
|
|
udisks2.enable = true; # Enable udisks2
|
2019-12-10 14:43:41 +00:00
|
|
|
|
2020-04-21 08:23:43 +00:00
|
|
|
xserver = {
|
|
|
|
enable = true;
|
|
|
|
desktopManager = {
|
2021-06-04 00:32:51 +00:00
|
|
|
gnome.enable = true; # Enable GNOME desktop environment
|
2020-04-21 08:23:43 +00:00
|
|
|
};
|
|
|
|
displayManager = {
|
|
|
|
defaultSession = "gnome"; # Set GNOME as the default session
|
|
|
|
gdm.enable = true; # Enable the GNOME display manager
|
|
|
|
};
|
|
|
|
libinput.enable = true; # Enable touchpad support.
|
|
|
|
};
|
|
|
|
};
|
2020-01-24 05:40:54 +00:00
|
|
|
|
2019-12-10 14:43:41 +00:00
|
|
|
sound.enable = true; # Enable sound.
|
2020-04-21 08:23:43 +00:00
|
|
|
|
|
|
|
# Configure common hardware settings
|
2020-01-06 00:45:20 +00:00
|
|
|
hardware = {
|
|
|
|
pulseaudio = {
|
|
|
|
enable = true;
|
|
|
|
extraModules = [ pkgs.pulseaudio-modules-bt ];
|
|
|
|
package = pkgs.pulseaudioFull;
|
|
|
|
};
|
|
|
|
bluetooth = {
|
|
|
|
enable = true; # Enable bluetooth
|
2021-07-12 23:23:39 +00:00
|
|
|
hsphfpd.enable = true;
|
2021-06-04 00:32:51 +00:00
|
|
|
settings = {
|
2020-04-21 08:23:43 +00:00
|
|
|
General = {
|
|
|
|
Enable = "Source,Sink,Media,Socket";
|
2021-02-22 10:44:57 +00:00
|
|
|
NoPlugin = "sap";
|
2020-04-21 08:23:43 +00:00
|
|
|
};
|
|
|
|
Policy = {
|
|
|
|
AutoEnable = "true";
|
|
|
|
};
|
|
|
|
};
|
2020-01-06 00:45:20 +00:00
|
|
|
};
|
|
|
|
opengl.enable = true;
|
2019-12-10 14:43:41 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
# Configure Firefox and Chromium
|
|
|
|
nixpkgs.config = {
|
|
|
|
allowUnfree = true;
|
|
|
|
};
|
|
|
|
|
|
|
|
programs = {
|
|
|
|
chromium = {
|
|
|
|
enable = true;
|
|
|
|
homepageLocation = "https://start.duckduckgo.com/";
|
|
|
|
};
|
|
|
|
};
|
|
|
|
|
2020-01-06 00:45:20 +00:00
|
|
|
# Groups to add
|
|
|
|
users.groups = {
|
|
|
|
audio.members = [
|
|
|
|
"craige"
|
|
|
|
"fiona"
|
|
|
|
"hamish"
|
|
|
|
"logan"
|
|
|
|
"xander"
|
|
|
|
];
|
|
|
|
libvirtd.members = [
|
|
|
|
"craige"
|
|
|
|
"fiona"
|
|
|
|
"hamish"
|
|
|
|
"logan"
|
|
|
|
"xander"
|
|
|
|
];
|
|
|
|
networkmanager.members = [
|
|
|
|
"craige"
|
|
|
|
"fiona"
|
|
|
|
"hamish"
|
|
|
|
"logan"
|
|
|
|
"xander"
|
|
|
|
];
|
|
|
|
};
|
|
|
|
|
2019-12-10 14:43:41 +00:00
|
|
|
}
|