mirror of
https://github.com/starr-dusT/dotfiles.git
synced 2025-02-19 19:27:31 -08:00
clean up desktop modules
This commit is contained in:
parent
996c2d8ed7
commit
1b065d5687
@ -3,6 +3,7 @@
|
|||||||
let cfg = config.modules.desktop;
|
let cfg = config.modules.desktop;
|
||||||
in {
|
in {
|
||||||
imports = [
|
imports = [
|
||||||
|
./kde-connect.nix
|
||||||
./keyd.nix
|
./keyd.nix
|
||||||
./gnome.nix
|
./gnome.nix
|
||||||
];
|
];
|
||||||
@ -22,7 +23,6 @@ in {
|
|||||||
gimp # GNU Image Manipulation Program for editing and composing raster images.
|
gimp # GNU Image Manipulation Program for editing and composing raster images.
|
||||||
];
|
];
|
||||||
|
|
||||||
# xdg-desktop-portal settings
|
|
||||||
services.dbus.enable = true;
|
services.dbus.enable = true;
|
||||||
xdg.mime = {
|
xdg.mime = {
|
||||||
enable = true;
|
enable = true;
|
||||||
|
@ -17,56 +17,42 @@ let
|
|||||||
binds;
|
binds;
|
||||||
in {
|
in {
|
||||||
|
|
||||||
options.modules.desktop.gnome = with lib; {
|
options.modules.desktop.gnome.enable = lib.mkEnableOption "gnome";
|
||||||
enable = lib.mkEnableOption "gnome";
|
|
||||||
};
|
|
||||||
|
|
||||||
config = lib.mkIf cfg.enable {
|
config = lib.mkIf cfg.enable {
|
||||||
environment.systemPackages = with pkgs; [
|
environment.systemPackages = with pkgs; [
|
||||||
dconf-editor # Graphical tool for editing settings stored in the dconf database of GNOME.
|
dconf-editor # Graphical tool for editing settings stored in the dconf database of GNOME
|
||||||
gnome-tweaks # Utility for customizing various aspects of the GNOME desktop environment.
|
gnome-tweaks # Utility for customizing various aspects of the GNOME desktop environment
|
||||||
evolution # Personal information management application that provides email, calendar, and contact management features.
|
evolution # Personal information management application that provides email, calendar, and contact management features
|
||||||
gnomeExtensions.focus-changer # GNOME Shell extension for changing window focus behavior.
|
gnomeExtensions.focus-changer # GNOME Shell extension for changing window focus behavior
|
||||||
gnomeExtensions.custom-hot-corners-extended # GNOME Shell extension for changing window focus behavior.
|
gnomeExtensions.custom-hot-corners-extended # GNOME Shell extension for changing window focus behavior
|
||||||
gnomeExtensions.alphabetical-app-grid
|
gnomeExtensions.alphabetical-app-grid # Alphabetically order the app grid and folders
|
||||||
gnome-fullscreen-to-empty-workspace
|
gnome-fullscreen-to-empty-workspace # New, maximized and fullscreen windows will be moved to empty workspaces
|
||||||
gnome-set-panel-monitor
|
gnome-set-panel-monitor # Set monitor for panel to appear on
|
||||||
gnome-randr
|
gnome-randr # Xrandr-like CLI for configuring displays on GNOME/Wayland
|
||||||
ftw
|
ftw # Build custom ftl wallpapers in a complicated way for no reason
|
||||||
];
|
];
|
||||||
|
|
||||||
environment.gnome.excludePackages = with pkgs; [
|
environment.gnome.excludePackages = with pkgs; [
|
||||||
baobab # Disk usage analyzer for the GNOME desktop environment.
|
baobab # Disk usage analyzer for the GNOME desktop environment
|
||||||
cheese # Webcam application for taking photos and videos.
|
cheese # Webcam application for taking photos and videos
|
||||||
epiphany # Web browser for the GNOME desktop environment.
|
epiphany # Web browser for the GNOME desktop environment
|
||||||
pkgs.gedit # Text editor for the GNOME desktop environment.
|
gedit # Text editor for the GNOME desktop environment
|
||||||
simple-scan # Simple scanning utility for scanning documents and images.
|
simple-scan # Simple scanning utility for scanning documents and images
|
||||||
totem # Movie player for the GNOME desktop environment.
|
totem # Movie player for the GNOME desktop environment
|
||||||
yelp # Help viewer application for the GNOME desktop environment.
|
yelp # Help viewer application for the GNOME desktop environment
|
||||||
evince # Document viewer for the GNOME desktop environment.
|
evince # Document viewer for the GNOME desktop environment
|
||||||
geary # Email client for the GNOME desktop environment.
|
geary # Email client for the GNOME desktop environment
|
||||||
seahorse # GNOME application for managing encryption keys and passwords.
|
seahorse # GNOME application for managing encryption keys and passwords
|
||||||
gnome-tour # Guided tour application for introducing users to GNOME desktop environment features.
|
gnome-tour # Guided tour application for introducing users to GNOME desktop environment features
|
||||||
snapshot # Utility for taking and managing system snapshots in the GNOME desktop environment.
|
snapshot # Utility for taking and managing system snapshots in the GNOME desktop environment
|
||||||
gnome-connections # GNOME application for accessing remote machines and services.
|
gnome-connections # GNOME application for accessing remote machines and services
|
||||||
gnome-font-viewer # Utility for previewing and managing fonts in the GNOME desktop environment.
|
gnome-font-viewer # Utility for previewing and managing fonts in the GNOME desktop environment
|
||||||
gnome-logs # Log viewer application for GNOME.
|
gnome-logs # Log viewer application for GNOME
|
||||||
gnome-maps # Map application for the GNOME desktop environment.
|
gnome-maps # Map application for the GNOME desktop environment
|
||||||
gnome-music # Music player and management application for GNOME.
|
gnome-music # Music player and management application for GNOME
|
||||||
gnome-shell-extensions # Extensions for enhancing functionality and customization in the GNOME.
|
gnome-shell-extensions # Extensions for enhancing functionality and customization in the GNOME
|
||||||
];
|
];
|
||||||
|
|
||||||
# Valent for remote control
|
|
||||||
programs.kdeconnect = {
|
|
||||||
enable = true;
|
|
||||||
package = pkgs.valent;
|
|
||||||
};
|
|
||||||
networking.firewall = rec {
|
|
||||||
allowedTCPPortRanges = [ { from = 1714; to = 1764; } ];
|
|
||||||
allowedUDPPortRanges = allowedTCPPortRanges;
|
|
||||||
};
|
|
||||||
|
|
||||||
# Enable wayland gnome
|
|
||||||
services.xserver = {
|
services.xserver = {
|
||||||
enable = true;
|
enable = true;
|
||||||
displayManager.gdm = {
|
displayManager.gdm = {
|
||||||
@ -83,8 +69,6 @@ in {
|
|||||||
enable = true;
|
enable = true;
|
||||||
defaultApplications = {
|
defaultApplications = {
|
||||||
"text/plain" = "org.gnome.TextEditor.desktop";
|
"text/plain" = "org.gnome.TextEditor.desktop";
|
||||||
|
|
||||||
# Images
|
|
||||||
"image/bmp" = "org.gnome.Loupe.desktop";
|
"image/bmp" = "org.gnome.Loupe.desktop";
|
||||||
"image/gif" = "org.gnome.Loupe.desktop";
|
"image/gif" = "org.gnome.Loupe.desktop";
|
||||||
"image/jpg" = "org.gnome.Loupe.desktop";
|
"image/jpg" = "org.gnome.Loupe.desktop";
|
||||||
@ -101,9 +85,7 @@ in {
|
|||||||
"image/x-portable-bitmap" = "org.gnome.Loupe.desktop";
|
"image/x-portable-bitmap" = "org.gnome.Loupe.desktop";
|
||||||
"image/x-portable-graymap" = "org.gnome.Loupe.desktop";
|
"image/x-portable-graymap" = "org.gnome.Loupe.desktop";
|
||||||
"image/x-portable-pixmap" = "org.gnome.Loupe.desktop";
|
"image/x-portable-pixmap" = "org.gnome.Loupe.desktop";
|
||||||
"image/x-xbitmap" = "org.gnome.Loupe.desktop";
|
"image/x-xbitmap" = "org.gnome.Loupe.desktop"; "image/x-xpixmap" = "org.gnome.Loupe.desktop"; "image/x-pcx" = "org.gnome.Loupe.desktop";
|
||||||
"image/x-xpixmap" = "org.gnome.Loupe.desktop";
|
|
||||||
"image/x-pcx" = "org.gnome.Loupe.desktop";
|
|
||||||
"image/svg+xml" = "org.gnome.Loupe.desktop";
|
"image/svg+xml" = "org.gnome.Loupe.desktop";
|
||||||
"image/svg+xml-compressed" = "org.gnome.Loupe.desktop";
|
"image/svg+xml-compressed" = "org.gnome.Loupe.desktop";
|
||||||
"image/vnd.wap.wbmp" = "org.gnome.Loupe.desktop";
|
"image/vnd.wap.wbmp" = "org.gnome.Loupe.desktop";
|
||||||
|
16
provision/modules/desktop/kde-connect.nix
Normal file
16
provision/modules/desktop/kde-connect.nix
Normal file
@ -0,0 +1,16 @@
|
|||||||
|
{ config, lib, pkgs, user, inputs, ... }:
|
||||||
|
|
||||||
|
let cfg = config.modules.desktop.gnome;
|
||||||
|
in {
|
||||||
|
config = lib.mkIf cfg.enable {
|
||||||
|
networking.firewall = rec {
|
||||||
|
allowedTCPPortRanges = [ { from = 1714; to = 1764; } ];
|
||||||
|
allowedUDPPortRanges = allowedTCPPortRanges;
|
||||||
|
};
|
||||||
|
|
||||||
|
programs.kdeconnect = {
|
||||||
|
enable = true;
|
||||||
|
package = pkgs.valent; # Implementation of the KDE Connect protocol, built on GNOME platform libraries
|
||||||
|
};
|
||||||
|
};
|
||||||
|
}
|
@ -1,9 +1,7 @@
|
|||||||
{ config, lib, pkgs, user, inputs, ... }:
|
{ config, lib, pkgs, user, inputs, ... }:
|
||||||
let
|
|
||||||
cfg = config.modules.desktop.gnome;
|
let cfg = config.modules.desktop.gnome;
|
||||||
in {
|
in {
|
||||||
# Only launch for Gnome
|
|
||||||
# TODO: if using with other WMs/DEs revise this.
|
|
||||||
config = lib.mkIf cfg.enable {
|
config = lib.mkIf cfg.enable {
|
||||||
services.keyd = {
|
services.keyd = {
|
||||||
enable = true;
|
enable = true;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user