2019-12-16 07:54:46 +00:00
|
|
|
{ config, pkgs, ... }:
|
|
|
|
let
|
|
|
|
inherit (builtins)
|
|
|
|
readFile
|
|
|
|
;
|
|
|
|
in
|
|
|
|
{
|
|
|
|
imports = [
|
|
|
|
./sway
|
2019-12-23 05:01:28 +00:00
|
|
|
../develop
|
2019-12-16 07:54:46 +00:00
|
|
|
];
|
|
|
|
|
2019-12-18 01:53:29 +00:00
|
|
|
hardware.opengl.enable = true;
|
|
|
|
hardware.opengl.driSupport = true;
|
2020-01-01 23:26:40 +00:00
|
|
|
hardware.pulseaudio.enable = true;
|
2019-12-18 01:53:29 +00:00
|
|
|
|
2019-12-16 07:54:46 +00:00
|
|
|
sound.enable = true;
|
|
|
|
|
|
|
|
environment = {
|
|
|
|
etc = {
|
|
|
|
"xdg/gtk-3.0/settings.ini" = {
|
|
|
|
text = ''
|
|
|
|
[ Settings ]
|
|
|
|
gtk-icon-theme-name=Papirus-Adapta
|
|
|
|
gtk-theme-name=Adapta
|
|
|
|
gtk-cursor-theme-name=Adwaita
|
|
|
|
'';
|
|
|
|
mode = "444";
|
|
|
|
};
|
|
|
|
|
|
|
|
"xdg/qutebrowser/config.py".text = let
|
|
|
|
mpv = "${pkgs.mpv}/bin/mpv";
|
|
|
|
in
|
|
|
|
''
|
|
|
|
${readFile ./qutebrowser/config.py}
|
|
|
|
|
|
|
|
config.bind(',m', 'hint links spawn -d ${mpv} {hint-url}')
|
|
|
|
config.bind(',v', 'spawn -d ${mpv} {url}')
|
|
|
|
'';
|
|
|
|
};
|
|
|
|
|
|
|
|
sessionVariables = {
|
|
|
|
# default browser
|
|
|
|
BROWSER = "qute";
|
|
|
|
|
|
|
|
# Theme settings
|
|
|
|
QT_QPA_PLATFORMTHEME = "gtk2";
|
|
|
|
GTK2_RC_FILES = let
|
|
|
|
gtk = ''
|
|
|
|
gtk-icon-theme-name="Papirus-Adapta"
|
|
|
|
gtk-cursor-theme-name="Adwaita"
|
|
|
|
'';
|
|
|
|
in
|
|
|
|
[
|
|
|
|
(''${ pkgs.writeText "iconrc" "${gtk}" }'')
|
|
|
|
"${pkgs.adapta-gtk-theme}/share/themes/Adapta/gtk-2.0/gtkrc"
|
|
|
|
"${pkgs.gnome3.gnome-themes-extra}/share/themes/Adwaita/gtk-2.0/gtkrc"
|
|
|
|
];
|
|
|
|
};
|
|
|
|
|
|
|
|
systemPackages = with pkgs; [
|
|
|
|
adapta-gtk-theme
|
|
|
|
cursor
|
|
|
|
dzen2
|
|
|
|
feh
|
2019-12-31 01:42:36 +00:00
|
|
|
ffmpeg-full
|
2019-12-18 06:43:13 +00:00
|
|
|
firefox
|
2019-12-16 07:54:46 +00:00
|
|
|
gnome3.adwaita-icon-theme
|
|
|
|
gnome-themes-extra
|
|
|
|
imagemagick
|
|
|
|
imlib2
|
|
|
|
librsvg
|
|
|
|
libsForQt5.qtstyleplugins
|
|
|
|
mpv
|
|
|
|
networkmanager_dmenu
|
|
|
|
papirus-icon-theme
|
|
|
|
qute
|
|
|
|
qutebrowser
|
2019-12-18 06:33:06 +00:00
|
|
|
sddm-chili
|
2019-12-16 07:54:46 +00:00
|
|
|
youtubeDL
|
|
|
|
zathura
|
|
|
|
];
|
|
|
|
};
|
|
|
|
|
2019-12-18 06:33:06 +00:00
|
|
|
services.xserver = {
|
|
|
|
enable = true;
|
|
|
|
|
|
|
|
desktopManager.plasma5.enable = true;
|
|
|
|
|
|
|
|
displayManager.sddm = {
|
|
|
|
enable = true;
|
|
|
|
theme = "chili";
|
|
|
|
};
|
|
|
|
};
|
|
|
|
|
2019-12-16 07:54:46 +00:00
|
|
|
nixpkgs.overlays = let
|
2019-12-18 03:47:43 +00:00
|
|
|
overlay = self: super: {
|
2019-12-16 07:54:46 +00:00
|
|
|
qute = super.writeShellScriptBin "qute" ''
|
2019-12-18 03:47:43 +00:00
|
|
|
exec ${super.qutebrowser}/bin/qutebrowser -C /etc/xdg/qutebrowser/config.py "$@"
|
2019-12-16 07:54:46 +00:00
|
|
|
'';
|
|
|
|
|
|
|
|
cursor = super.writeTextDir "share/icons/default/index.theme" ''
|
|
|
|
[icon theme]
|
|
|
|
Inherits=Adwaita
|
|
|
|
'';
|
2019-12-31 01:42:36 +00:00
|
|
|
|
|
|
|
ffmpeg-full = super.ffmpeg-full.override {
|
|
|
|
svt-av1 = super.svt-av1;
|
|
|
|
dav1d = super.dav1d;
|
|
|
|
libaom = null;
|
|
|
|
opencore-amr = null;
|
|
|
|
libopus = super.libopus;
|
|
|
|
};
|
2019-12-16 07:54:46 +00:00
|
|
|
};
|
|
|
|
in
|
2019-12-18 03:47:43 +00:00
|
|
|
[ overlay ];
|
2019-12-16 07:54:46 +00:00
|
|
|
}
|