This commit is contained in:
Dmitriy Kholkin 2020-08-04 01:51:37 +04:00
parent 8e2daeb5be
commit e4d5264913
4 changed files with 21 additions and 17 deletions

View File

@ -38,6 +38,10 @@ with import ../support.nix { inherit lib config; }; {
cmd = "${pkgs.xarchiver}/bin/xarchiver"; cmd = "${pkgs.xarchiver}/bin/xarchiver";
desktop = "xarchiver"; desktop = "xarchiver";
}; };
pdf = {
cmd = "${pkgs.zathura}/bin/zathura";
desktop = "zathura";
};
# archive = { # archive = {
# cmd = "${pkgs.ark}/bin/ark"; # cmd = "${pkgs.ark}/bin/ark";
# desktop = "org.kde.ark"; # desktop = "org.kde.ark";
@ -72,6 +76,7 @@ with import ../support.nix { inherit lib config; }; {
"x-scheme-handler/about" = browser; "x-scheme-handler/about" = browser;
"x-scheme-handler/unknown" = browser; "x-scheme-handler/unknown" = browser;
# "x-scheme-handler/mailto" = mail; # "x-scheme-handler/mailto" = mail;
"application/pdf" = pdf;
# "application/pdf" = { desktop = "org.kde.okular"; }; # "application/pdf" = { desktop = "org.kde.okular"; };
# "application/vnd.openxmlformats-officedocument.wordprocessingml.document" = # "application/vnd.openxmlformats-officedocument.wordprocessingml.document" =
# text_processor; # text_processor;

24
modules/applications/packages.nix Executable file → Normal file
View File

@ -13,9 +13,9 @@ let
}; };
in { in {
programs.adb.enable = true; programs.adb.enable = true;
programs.java = lib.mkIf (device == "AMD-Workstation") { programs.java = {
enable = true; enable = true;
package = pkgs.jre; package = if (device == "AMD-Workstation") then pkgs.jdk13 else pkgs.jre;
}; };
environment.systemPackages = with pkgs; [ environment.systemPackages = with pkgs; [
@ -35,6 +35,7 @@ in {
i3lock-fancy-rapid i3lock-fancy-rapid
keepassxc keepassxc
git-crypt
# Samba support # Samba support
cifs-utils cifs-utils
# Utils # Utils
@ -49,23 +50,20 @@ in {
tree tree
iperf iperf
# Other
(youtube-to-mpv.override { isLaptop = isLaptop; }) (youtube-to-mpv.override { isLaptop = isLaptop; })
wg-conf wg-conf
# Other
(vivaldi.override { proprietaryCodecs = true; }) (vivaldi.override { proprietaryCodecs = true; })
wget wget
gparted gparted
neofetch neofetch
bashmount bashmount
p7zip
zip zip
ranger ranger
youtube-dl youtube-dl
speedcrunch lua
feh feh
setroot
maim maim
mupdf
ncmpcpp ncmpcpp
pywal pywal
@ -80,7 +78,7 @@ in {
blueman blueman
] ++ lib.optionals (!isVM) [ ] ++ lib.optionals (!isVM) [
libreoffice libreoffice
rust-stable # rust-stable
] ++ lib.optionals (device == "AMD-Workstation") [ ] ++ lib.optionals (device == "AMD-Workstation") [
xonar-fp xonar-fp
]; ];
@ -92,15 +90,15 @@ in {
tdesktop tdesktop
spotifywm spotifywm
spotify-tui spotify-tui
spicetify-cli
discord discord
pulseeffects pulseeffects
quodlibet # quodlibet
zathura
] ++ lib.optionals (!isVM) [ ] ++ lib.optionals (!isVM) [
steam # steam
steam-run # steam-run
# protontricks # protontricks
lutris # lutris
# retroarch # retroarch
] ++ lib.optionals (enableVirtualisation) [ ] ++ lib.optionals (enableVirtualisation) [
docker-compose docker-compose

View File

@ -32,7 +32,7 @@ device:
./workspace/mpv.nix ./workspace/mpv.nix
./workspace/pulseeffects ./workspace/pulseeffects
./workspace/rofi.nix ./workspace/rofi.nix
./workspace/spotifyd.nix # ./workspace/spotifyd.nix
./workspace/xresources.nix ./workspace/xresources.nix
./workspace/zsh.nix ./workspace/zsh.nix
]; ];

View File

@ -10,7 +10,7 @@ with deviceSpecific; with themes; {
libinput = { libinput = {
enable = isLaptop; enable = isLaptop;
# sendEventsMode = "disabled-on-external-mouse"; # sendEventsMode = "disabled-on-external-mouse";
# middleEmulation = false; middleEmulation = true;
accelProfile = lib.mkIf (!isLaptop) "flat"; accelProfile = lib.mkIf (!isLaptop) "flat";
naturalScrolling = true; naturalScrolling = true;
}; };
@ -54,10 +54,11 @@ with deviceSpecific; with themes; {
# password-background-color = "${colors.bg}" # password-background-color = "${colors.bg}"
# ''; # '';
# }; # };
autoLogin.enable = !isShared;
autoLogin.user = "alukard";
}; };
displayManager.autoLogin.enable = !isShared;
displayManager.autoLogin.user = "alukard";
displayManager.defaultSession = "none+i3"; displayManager.defaultSession = "none+i3";
desktopManager.xterm.enable = false; desktopManager.xterm.enable = false;