This repository has no description
2.5 kB
103 lines
1{ self, pkgs, lib, ... }:
2{
3 imports = [
4 ../../alacritty.nix
5 ../../mpv.nix
6 ../../power-action.nix
7 ../../urxvt.nix
8 ../../xdg-open.nix
9 ../../yubikey.nix
10 ../../tmux.nix
11 ../../themes.nix
12 ../../fonts.nix
13 # ../pipewire.nix
14 # ./tty-share.nix
15 {
16 users.users.mainUser.packages = [
17 pkgs.sshuttle
18 ];
19 security.sudo.extraConfig = ''
20 lass ALL= (root) NOPASSWD:SETENV: ${pkgs.sshuttle}/bin/.sshuttle-wrapped
21 '';
22 }
23 ];
24 users.users.mainUser.extraGroups = [ "audio" "pipewire" "video" "input" ];
25
26 xdg.portal.enable = true;
27 xdg.portal.wlr.enable = true;
28 xdg.portal.config.common.default = "*"; # get old behavior back
29 fonts.enableDefaultPackages = true;
30
31 security.polkit.enable = true;
32 security.pam.services.swaylock = { };
33
34 programs.dconf.enable = lib.mkDefault true;
35 programs.xwayland.enable = lib.mkDefault true;
36
37 environment.sessionVariables = {
38 MOZ_ENABLE_WAYLAND = "1";
39 XDG_SESSION_TYPE = "wayland";
40 SDL_VIDEODRIVER = "wayland";
41 QT_QPA_PLATFORM = "wayland";
42 QT_WAYLAND_DISABLE_WINDOWDECORATION = "1";
43 _JAVA_AWT_WM_NONREPARENTING = "1";
44 };
45
46 programs.wshowkeys.enable = true;
47
48 environment.systemPackages = with pkgs; [
49 qtile
50 swaylock-effects # lockscreen
51 pavucontrol
52 swayidle
53 rofi-wayland
54 rofi-rbw
55 gnome.eog
56 libnotify
57 mako # notifications
58 kanshi # auto-configure display outputs
59 wdisplays # buggy with qtile?
60 wlr-randr
61 wl-clipboard
62 wev
63 blueberry
64 grim # screenshots
65 wtype
66 zathura
67 nsxiv
68
69 pavucontrol
70 evince
71 libnotify
72 pamixer
73 gnome.file-roller
74 xdg-utils
75 # polkit agent
76 polkit_gnome
77
78 # gtk3 themes
79 gsettings-desktop-schemas
80 self.packages.${pkgs.system}.otpmenu
81 (pkgs.writers.writeDashBin "pass_menu" ''
82 set -efux
83 password=$(
84 (cd $HOME/.password-store; find -type f -name '*.gpg') |
85 sed -e 's/\.gpg$//' |
86 rofi -dmenu -p 'Password: ' |
87 xargs -I{} pass show {} |
88 tr -d '\n'
89 )
90 echo -n "$password" | ${pkgs.wtype}/bin/wtype -d 10 -s 400 -
91 '')
92 (pkgs.writers.writeDashBin "screenshot" ''
93 ${pkgs.grim}/bin/grim -g "$(${pkgs.slurp}/bin/slurp)" - | ${pkgs.wl-clipboard}/bin/wl-copy
94 '')
95 ];
96
97 environment.pathsToLink = [
98 "/libexec" # for polkit
99 "/share/gsettings-schemas" # for XDG_DATA_DIRS
100 ];
101
102 qt.platformTheme = "qt5ct";
103}