106 lines
1.7 KiB
Nix
106 lines
1.7 KiB
Nix
{ pkgs, config, lib, ... }:
|
|
with rec {
|
|
inherit (config) device deviceSpecific;
|
|
};
|
|
with deviceSpecific;
|
|
let
|
|
rust-stable = pkgs.rustChannels.stable.rust.override {
|
|
extensions = [
|
|
"rls-preview"
|
|
"clippy-preview"
|
|
"rustfmt-preview"
|
|
];
|
|
};
|
|
in {
|
|
programs.adb.enable = true;
|
|
programs.java = lib.mkIf (device == "AMD-Workstation") {
|
|
enable = true;
|
|
package = pkgs.jre;
|
|
};
|
|
|
|
environment.systemPackages = with pkgs; [
|
|
# Important
|
|
rxvt_unicode
|
|
curl
|
|
xfce4-14.thunar
|
|
xfce4-14.xfce4-taskmanager
|
|
xclip
|
|
bc
|
|
sysstat
|
|
xdotool
|
|
niv
|
|
|
|
lxqt.pavucontrol-qt
|
|
bibata-cursors
|
|
i3lock-fancy-rapid
|
|
|
|
keepassxc
|
|
# Samba support
|
|
cifs-utils
|
|
# Utils
|
|
pciutils
|
|
usbutils
|
|
nix-prefetch-git
|
|
hdparm
|
|
vdpauinfo
|
|
libva-utils
|
|
lm_sensors
|
|
libnotify
|
|
tree
|
|
iperf
|
|
|
|
(youtube-to-mpv.override { isLaptop = isLaptop; })
|
|
wg-conf
|
|
# Other
|
|
(vivaldi.override { proprietaryCodecs = true; })
|
|
wget
|
|
gparted
|
|
neofetch
|
|
bashmount
|
|
p7zip
|
|
zip
|
|
ranger
|
|
youtube-dl
|
|
speedcrunch
|
|
feh
|
|
setroot
|
|
maim
|
|
mupdf
|
|
ncmpcpp
|
|
|
|
pywal
|
|
python27Packages.pygtk
|
|
python2
|
|
] ++ lib.optionals isLaptop [
|
|
# Important
|
|
acpi
|
|
light
|
|
powertop
|
|
# Other
|
|
blueman
|
|
] ++ lib.optionals (!isVM) [
|
|
libreoffice
|
|
# rust-stable
|
|
] ++ lib.optionals (device == "AMD-Workstation") [
|
|
xonar-fp
|
|
];
|
|
|
|
home-manager.users.alukard.home.packages = with pkgs; [
|
|
qbittorrent
|
|
vscode
|
|
xarchiver
|
|
tdesktop
|
|
spotifywm
|
|
discord
|
|
pulseeffects
|
|
] ++ lib.optionals (!isVM) [
|
|
steam
|
|
steam-run
|
|
protontricks
|
|
# retroarch
|
|
] ++ lib.optionals (enableDocker) [
|
|
docker-compose
|
|
];
|
|
|
|
}
|