diff options
| author | Devin Finlinson <devin.finlinson@pm.me> | 2023-10-03 15:07:37 -0600 |
|---|---|---|
| committer | Devin Finlinson <devin.finlinson@pm.me> | 2023-10-03 15:07:37 -0600 |
| commit | 74d1b517e927e7af2646a711f8effc36b893471b (patch) | |
| tree | cfde227ad7ba7e228c70479f5ecbed3ca345dc76 /modules/nixos/hyprland.nix | |
| parent | ff89565a5322bb998ce7ad5b2da5549e6fe02b8a (diff) | |
starting to bring definitions back into purpose-specific locations, rather than type-specific
Diffstat (limited to 'modules/nixos/hyprland.nix')
| -rw-r--r-- | modules/nixos/hyprland.nix | 86 |
1 files changed, 84 insertions, 2 deletions
diff --git a/modules/nixos/hyprland.nix b/modules/nixos/hyprland.nix index c754eae..c5872da 100644 --- a/modules/nixos/hyprland.nix +++ b/modules/nixos/hyprland.nix @@ -1,3 +1,85 @@ -{ config, lib, ...}: { - programs.hyprland.enable = true; +{ pkgs, hyprland, ...}: { + xdg.portal = { + enable = true; + wlr.enable = true; + extraPortals = with pkgs; [ + xdg-desktop-portal-wlr + ]; + }; + + environment.pathsToLink = ["/libexec"]; # links /libexec from derivations to /run/current-system/sw + services = { + gvfs.enable = true; # Mount, trash, and other fucntionalities + tumbler.enable = true; # thumbnail support for images + xserver = { + enable = true; + + desktopManager = { + xterm.enable = false; + }; + + displayManager = { + defaultSession = "hyprland"; + lightdm.enable = false; + # gdm = { + # enable = true; + # wayland = true; + # }; + }; + }; + }; + programs = { + hyprland = { + enable = true; + + xwayland = { + enable = true; + hidpi = true; + }; + + # nvidiaPatches = true; + }; + + # monitor backlight control + light.enable = true; + + # # thunar file manager(part of xfce) related options + # thunar.plugins = with pkgs.xfce; [ + # thunar-archive-plugin + # thunar-volman + # ]; + }; + + # List packages installed in system profile. To search, run: + # $ nix search wget + environment.systemPackages = with pkgs; [ + waybar # the status bar + swaybg # the wallpaper + swayidle # the idle timeout + swaylock # locking the screen + wlogout # logout menu + wl-clipboard # copying and pasting + hyprpicker # color picker + + wf-recorder # screen recording + grim # taking screenshots + slurp # selecting a region to screenshot + # TODO replace by 'flameshot gui --raw | wl-copy' + + mako # the notification daemon, the same as dunst + + yad # a fork of zenity, for creating dialogs + + # audio + alsa-utils # provides amixer/alsamixer/... + mpd # for playing system sounds + mpc-cli # command-line pmd client + ncmpcpp # a mpd client with a UI + networkmanagerapplet # provide GUI app: nm-connection-editor + + xfce.thunar # sfce4's file manager + ]; + + # fix https://github.com/ryan4yin/nix-config/issues/10 + security.pam.services.swaylock = {}; }
\ No newline at end of file |
