Refactor: Move and subcategorize modules
This commit is contained in:
parent
49ebf1155e
commit
d6f25a0f4e
12 changed files with 9 additions and 7 deletions
11
modules/desktop/apps/communication.nix
Normal file
11
modules/desktop/apps/communication.nix
Normal file
|
@ -0,0 +1,11 @@
|
|||
{ pkgs, ... }:
|
||||
|
||||
{
|
||||
environment.systemPackages = with pkgs; [
|
||||
tutanota-desktop
|
||||
signal-desktop
|
||||
element-desktop
|
||||
vesktop
|
||||
];
|
||||
}
|
||||
|
24
modules/desktop/apps/games.nix
Normal file
24
modules/desktop/apps/games.nix
Normal file
|
@ -0,0 +1,24 @@
|
|||
{ pkgs, ... }:
|
||||
|
||||
{
|
||||
programs.steam = {
|
||||
enable = true;
|
||||
remotePlay.openFirewall = false;
|
||||
dedicatedServer.openFirewall = true;
|
||||
};
|
||||
|
||||
nix.settings = {
|
||||
substituters = [ "https://ezkea.cachix.org" ];
|
||||
trusted-public-keys = [ "ezkea.cachix.org-1:ioBmUbJTZIKsHmWWXPe1FSFbeVe+afhfgqgTSNd34eI=" ];
|
||||
};
|
||||
# programs.honkers-railway-launcher.enable = true;
|
||||
programs.sleepy-launcher.enable = true;
|
||||
|
||||
environment.systemPackages = with pkgs; [
|
||||
prismlauncher
|
||||
protonup-qt
|
||||
xivlauncher
|
||||
osu-lazer-bin
|
||||
];
|
||||
}
|
||||
|
33
modules/desktop/apps/multimedia.nix
Normal file
33
modules/desktop/apps/multimedia.nix
Normal file
|
@ -0,0 +1,33 @@
|
|||
{ pkgs, ... }:
|
||||
|
||||
{
|
||||
environment.systemPackages = with pkgs; [
|
||||
mpv
|
||||
imagemagick
|
||||
ffmpeg-full
|
||||
yt-dlp
|
||||
(pkgs.symlinkJoin {
|
||||
name = "flowblade";
|
||||
paths = [ pkgs.flowblade ];
|
||||
buildInputs = [ pkgs.makeWrapper ];
|
||||
postBuild = ''
|
||||
rm "$out/bin/flowblade"
|
||||
echo "#!/bin/sh" > "$out/bin/flowblade"
|
||||
echo "SDL12COMPAT_NO_QUIT_VIDEO=1 \
|
||||
GDK_BACKEND=x11 \
|
||||
SDL_VIDEODRIVER=x11 \
|
||||
${pkgs.flowblade}/bin/flowblade" >> "$out/bin/flowblade"
|
||||
chmod 555 "$out/bin/flowblade"
|
||||
'';
|
||||
})
|
||||
gimp
|
||||
inkscape
|
||||
krita
|
||||
];
|
||||
|
||||
hardware.opentabletdriver = {
|
||||
enable = true;
|
||||
daemon.enable = true;
|
||||
};
|
||||
}
|
||||
|
60
modules/desktop/environments/hyprland.nix
Normal file
60
modules/desktop/environments/hyprland.nix
Normal file
|
@ -0,0 +1,60 @@
|
|||
{ inputs, pkgs, ...}:
|
||||
|
||||
{
|
||||
imports = [
|
||||
../../system/fonts.nix
|
||||
];
|
||||
|
||||
environment.systemPackages = with pkgs; [
|
||||
hyprpaper
|
||||
rofi-wayland
|
||||
foot
|
||||
wl-clipboard
|
||||
nautilus
|
||||
pavucontrol
|
||||
nvidia-vaapi-driver
|
||||
];
|
||||
|
||||
environment.sessionVariables = {
|
||||
LIBVA_DRIVER_NAME = "nvidia";
|
||||
XDG_SESSION_TYPE = "wayland";
|
||||
GBM_BACKEND = "nvidia-drm";
|
||||
__GLX_VENDOR_LIBRARY_NAME = "nvidia";
|
||||
NVD_BACKEND = "direct";
|
||||
MOZ_DISABLE_RDD_SANDBOX = 1;
|
||||
NIXOS_OZONE_WL = 1;
|
||||
};
|
||||
|
||||
programs.hyprland.enable = true;
|
||||
programs.hyprland.package = inputs.hyprland.packages.${pkgs.stdenv.hostPlatform.system}.hyprland;
|
||||
services.gnome.gnome-keyring.enable = true;
|
||||
security.pam.services.greetd.enableGnomeKeyring = true;
|
||||
|
||||
systemd.services.greetd.serviceConfig = {
|
||||
Type = "idle";
|
||||
StandardInput = "tty";
|
||||
StandardOutput = "tty";
|
||||
StandardError = "journal";
|
||||
TTYReset = true;
|
||||
TTYHangup = true;
|
||||
TTYVTDisallocate = true;
|
||||
};
|
||||
|
||||
services.greetd = {
|
||||
enable = true;
|
||||
settings = {
|
||||
default_session = {
|
||||
command = "${pkgs.greetd.tuigreet}/bin/tuigreet --time --asterisks --cmd hyprland";
|
||||
user = "greeter";
|
||||
};
|
||||
};
|
||||
};
|
||||
|
||||
xdg.portal = {
|
||||
enable = true;
|
||||
extraPortals = with pkgs; [
|
||||
xdg-desktop-portal-gtk
|
||||
];
|
||||
};
|
||||
}
|
||||
|
13
modules/desktop/environments/plasma.nix
Normal file
13
modules/desktop/environments/plasma.nix
Normal file
|
@ -0,0 +1,13 @@
|
|||
{ config, lib, pkgs, ... }:
|
||||
|
||||
{
|
||||
imports = [
|
||||
../packages/sets/x.nix
|
||||
];
|
||||
|
||||
services.xserver = {
|
||||
enable = true;
|
||||
displayManager.sddm.enable = true;
|
||||
};
|
||||
services.desktopManager.plasma6.enable = true;
|
||||
}
|
26
modules/desktop/environments/sway.nix
Normal file
26
modules/desktop/environments/sway.nix
Normal file
|
@ -0,0 +1,26 @@
|
|||
{ config, pkgs, ...}:
|
||||
|
||||
{
|
||||
environment.systemPackages = with pkgs; [
|
||||
rofi-wayland
|
||||
foot
|
||||
];
|
||||
|
||||
environment.variables = {
|
||||
LIBVA_DRIVER_NAME = "nvidia";
|
||||
XDG_SESSION_TYPE = "wayland";
|
||||
GBM_BACKEND = "nvidia-drm";
|
||||
__GLX_VENDOR_LIBRARY_NAME = "nvidia";
|
||||
NIXOS_OZONE_WL = 1;
|
||||
};
|
||||
|
||||
# programs.hyprland.enable = true;
|
||||
programs.sway = {
|
||||
enable = true;
|
||||
wrapperFeatures.gtk = true;
|
||||
};
|
||||
|
||||
services.displayManager.sddm.enable = true;
|
||||
services.displayManager.sddm.wayland.enable = true;
|
||||
}
|
||||
|
53
modules/desktop/environments/xmonad.nix
Normal file
53
modules/desktop/environments/xmonad.nix
Normal file
|
@ -0,0 +1,53 @@
|
|||
{ pkgs, ... }:
|
||||
|
||||
{
|
||||
imports = [
|
||||
../packages/sets/x.nix
|
||||
];
|
||||
|
||||
environment.systemPackages = with pkgs; [
|
||||
xmobar
|
||||
flameshot
|
||||
rofi
|
||||
feh
|
||||
kitty
|
||||
pavucontrol
|
||||
picom
|
||||
xdotool
|
||||
xorg.xkill
|
||||
xorg.xinput
|
||||
xclip
|
||||
];
|
||||
|
||||
services.xserver = {
|
||||
enable = true;
|
||||
xkb = {
|
||||
layout = "de";
|
||||
options = "eurosign:e";
|
||||
};
|
||||
|
||||
libinput.enable = true;
|
||||
|
||||
windowManager.xmonad = {
|
||||
enable = true;
|
||||
enableContribAndExtras = true;
|
||||
extraPackages = hp: [
|
||||
hp.dbus
|
||||
hp.xmonad-contrib
|
||||
hp.monad-logger
|
||||
];
|
||||
};
|
||||
};
|
||||
|
||||
services.gnome.gnome-keyring.enable = true;
|
||||
|
||||
xdg.portal = {
|
||||
enable = true;
|
||||
xdgOpenUsePortal = true;
|
||||
config.common.default = "*";
|
||||
extraPortals = with pkgs; [
|
||||
xdg-desktop-portal-gtk
|
||||
];
|
||||
};
|
||||
}
|
||||
|
Loading…
Add table
Add a link
Reference in a new issue