Skip to content

Commit

Permalink
Move gui packages to gui and enable flatpak only if xdg portals is en…
Browse files Browse the repository at this point in the history
…abled
  • Loading branch information
arunoruto committed Oct 1, 2024
1 parent 721a507 commit 59da1af
Show file tree
Hide file tree
Showing 6 changed files with 65 additions and 24 deletions.
6 changes: 6 additions & 0 deletions modules/nixos/desktop/gnome.nix
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,12 @@
(with pkgs; [
gnome-photos
gnome-tour
nautilus-open-any-terminal
gnome.nautilus-python
gnome.gnome-software
gnome.pomodoro
gnome.gnome-remote-desktop
gnome3.gnome-tweaks
])
++ (with pkgs.gnome; [
#cheese # webcam tool
Expand Down
4 changes: 3 additions & 1 deletion modules/nixos/environment/gui/default.nix
Original file line number Diff line number Diff line change
Expand Up @@ -4,16 +4,18 @@
...
}: {
imports = [
./chrome.nix
./firefox.nix
./steam.nix
./chrome.nix
./packages.nix

./wayland.nix
];

options.gui.enable = lib.mkEnableOption "Setup GUI Modules";

config = lib.mkIf config.gui.enable {
gui.packages.enable = lib.mkDefault true;
wayland.enable = lib.mkDefault true;

chrome.enable = lib.mkDefault true;
Expand Down
29 changes: 29 additions & 0 deletions modules/nixos/environment/gui/packages.nix
Original file line number Diff line number Diff line change
@@ -0,0 +1,29 @@
{
pkgs,
lib,
config,
...
}: {
options.gui.packages.enable = lib.mkEnableOption "Setup amd tools";

config = lib.mkIf config.gui.packages.enable {
environment.systemPackages = with pkgs; [
vlc
unstable.vscode
# wezterm

discord
gthumb
# jabref
libsForQt5.kdenlive
libsForQt5.okular
#mailspring
# masterpdfeditor
# mprime
unstable.plex-desktop
remmina
zoom-us
zotero
];
};
}
4 changes: 4 additions & 0 deletions modules/nixos/environment/gui/wayland.nix
Original file line number Diff line number Diff line change
Expand Up @@ -18,5 +18,9 @@
xdgOpenUsePortal = true;
};
};

environment.systemPackages = with pkgs; [
wl-clipboard
];
};
}
42 changes: 21 additions & 21 deletions modules/nixos/environment/packages.nix
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{pkgs, ...}: {
imports = [
./chrome.nix
];
# imports = [
# ./chrome.nix
# ];

environment = {
# Enable shells
Expand Down Expand Up @@ -39,38 +39,38 @@
tmux
unstable.ventoy
vim
vlc
unstable.vscode
# vlc
# unstable.vscode
#vscode
wezterm
# wezterm
wget
wl-clipboard
# wl-clipboard

discord
gthumb
# discord
# gthumb
# jabref
libsForQt5.kdenlive
libsForQt5.okular
# libsForQt5.kdenlive
# libsForQt5.okular
#mailspring
# masterpdfeditor
# mprime
unstable.plex-desktop
remmina
zoom-us
zotero
# unstable.plex-desktop
# remmina
# zoom-us
# zotero

texlive.combined.scheme-full

#ultrastardx
#ultrastar-manager

# Gnome specific applications
nautilus-open-any-terminal
gnome.nautilus-python
gnome.gnome-software
gnome.pomodoro
gnome.gnome-remote-desktop
gnome3.gnome-tweaks
# nautilus-open-any-terminal
# gnome.nautilus-python
# gnome.gnome-software
# gnome.pomodoro
# gnome.gnome-remote-desktop
# gnome3.gnome-tweaks
];
};
}
4 changes: 2 additions & 2 deletions modules/nixos/services/default.nix
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
{
pkgs,
config,
lib,
...
}: {
Expand All @@ -19,7 +19,7 @@
];

davmail.enable = lib.mkDefault false;
flatpak.enable = lib.mkDefault true;
flatpak.enable = lib.mkDefault config.xdg.portal.enable;
secrets.enable = lib.mkDefault true;
oneapi.enable = lib.mkDefault false;
# oneapi.enable = lib.mkDefault true;
Expand Down

0 comments on commit 59da1af

Please sign in to comment.