269 lines
6.3 KiB
Nix
269 lines
6.3 KiB
Nix
{
|
|
config,
|
|
pkgs,
|
|
...
|
|
}: {
|
|
config = {
|
|
services.udev.packages = [pkgs.yubikey-personalization];
|
|
|
|
programs.firefox.enable = true;
|
|
|
|
mj.base.users.passwd.motiejus.extraGroups = ["adbusers" "networkmanager"];
|
|
|
|
services = {
|
|
acpid.enable = true;
|
|
pcscd.enable = true;
|
|
printing = {
|
|
enable = true;
|
|
drivers = [pkgs.samsung-unified-linux-driver_4_01_17];
|
|
};
|
|
openssh.settings.X11Forwarding = true;
|
|
|
|
# TODO post-23.11
|
|
#logind.powerKey = "suspend";
|
|
#logind.powerKeyLongPress = "poweroff";
|
|
logind.extraConfig = ''
|
|
HandlePowerKey=suspend
|
|
HandlePowerKeyLongPress=poweroff
|
|
'';
|
|
|
|
xserver = {
|
|
enable = true;
|
|
layout = "us,lt";
|
|
xkbOptions = "grp:alt_shift_toggle";
|
|
|
|
desktopManager.xfce.enable = true;
|
|
windowManager.awesome.enable = true;
|
|
|
|
displayManager = {
|
|
sddm.enable = true;
|
|
defaultSession = "none+awesome";
|
|
autoLogin = {
|
|
enable = true;
|
|
user = "motiejus";
|
|
};
|
|
};
|
|
};
|
|
|
|
pipewire = {
|
|
enable = true;
|
|
alsa.enable = true;
|
|
alsa.support32Bit = true;
|
|
pulse.enable = true;
|
|
};
|
|
};
|
|
|
|
programs = {
|
|
adb.enable = true;
|
|
slock.enable = true;
|
|
nm-applet.enable = true;
|
|
command-not-found.enable = false;
|
|
};
|
|
|
|
virtualisation.podman = {
|
|
enable = true;
|
|
extraPackages = [pkgs.zfs];
|
|
};
|
|
|
|
security.rtkit.enable = true;
|
|
|
|
networking.networkmanager.enable = true;
|
|
|
|
# TODO gtimelog move to it's own module
|
|
programs.dconf.enable = true;
|
|
services.gnome.gnome-keyring.enable = true;
|
|
|
|
environment.systemPackages = with pkgs; [
|
|
iw
|
|
vlc
|
|
acpi
|
|
gimp
|
|
qgis
|
|
josm
|
|
xclip
|
|
pdftk
|
|
yt-dlp
|
|
arandr
|
|
pandoc
|
|
evince
|
|
calibre
|
|
gtimelog
|
|
chromium
|
|
hunspell
|
|
tigervnc
|
|
rtorrent
|
|
bsdgames
|
|
xss-lock
|
|
qpwgraph # for pipewire
|
|
gpicview
|
|
trayscale
|
|
rox-filer
|
|
distrobox
|
|
borgbackup
|
|
efibootmgr
|
|
winetricks
|
|
python3Full
|
|
libva-utils # intel video tests
|
|
pavucontrol
|
|
google-chrome
|
|
aspellDicts.en
|
|
aspellDicts.lt
|
|
libreoffice-qt
|
|
graphicsmagick
|
|
joplin-desktop
|
|
signal-desktop
|
|
element-desktop
|
|
wineWowPackages.full
|
|
hunspellDicts.en_US
|
|
python3Packages.ipython
|
|
samsung-unified-linux-driver
|
|
|
|
lld
|
|
llvm
|
|
llvm-manpages
|
|
clang-manpages
|
|
gcc_latest
|
|
|
|
gnome.nautilus
|
|
gnome.gnome-calculator
|
|
gnome.gnome-calendar
|
|
|
|
# TODO gtimelog move to it's own module
|
|
gnome.adwaita-icon-theme
|
|
|
|
xorg.xev
|
|
|
|
(texlive.combine {
|
|
inherit
|
|
(texlive)
|
|
scheme-medium
|
|
dvisvgm
|
|
dvipng
|
|
wrapfig
|
|
amsmath
|
|
ulem
|
|
hyperref
|
|
capt-of
|
|
lithuanian
|
|
hyphen-lithuanian
|
|
;
|
|
})
|
|
];
|
|
|
|
home-manager.users.motiejus = {
|
|
pkgs,
|
|
config,
|
|
...
|
|
}: {
|
|
imports = [./plasma.nix];
|
|
xdg.configFile."awesome/rc.lua".source = ./rc.lua;
|
|
|
|
# TODO
|
|
#xdg.configFile."gtimelog" = {
|
|
# source = "/home/motiejus/.local/share/gtimelog";
|
|
# target = "/home/motiejus/M-Active/timelog";
|
|
#};
|
|
|
|
programs.firefox = {
|
|
enable = true;
|
|
profiles = {
|
|
xdefault = {
|
|
isDefault = true;
|
|
settings = {
|
|
"browser.aboutConfig.showWarning" = false;
|
|
"browser.contentblocking.category" = "strict";
|
|
"browser.urlbar.showSearchSuggestionsFirst" = false;
|
|
"layout.css.prefers-color-scheme.content-override" = 0;
|
|
"signon.management.page.breach-alerts.enabled" = false;
|
|
"signon.rememberSignons" = false;
|
|
};
|
|
extensions = with pkgs.nur.repos.rycee.firefox-addons; [
|
|
bitwarden
|
|
ublock-origin
|
|
joplin-web-clipper
|
|
multi-account-containers
|
|
];
|
|
};
|
|
};
|
|
};
|
|
|
|
services.cbatticon.enable = true;
|
|
|
|
services.syncthing.tray = {
|
|
enable = true;
|
|
#extraOptions = ["--wait"];
|
|
};
|
|
|
|
services.pasystray = {
|
|
enable = true;
|
|
extraOptions = ["--key-grabbing" "--notify=all"];
|
|
};
|
|
|
|
services.gpg-agent = {
|
|
enable = true;
|
|
enableSshSupport = true;
|
|
};
|
|
|
|
services.screen-locker = {
|
|
enable = true;
|
|
xautolock.enable = false;
|
|
lockCmd = ''${pkgs.bash}/bin/bash -c "${pkgs.coreutils}/bin/sleep 0.2; ${pkgs.xorg.xset}/bin/xset dpms force off; /run/wrappers/bin/slock"'';
|
|
};
|
|
|
|
# thanks K900
|
|
gtk = {
|
|
enable = true;
|
|
theme = {
|
|
package = pkgs.plasma5Packages.breeze-gtk;
|
|
name = "Breeze";
|
|
};
|
|
cursorTheme = {
|
|
package = pkgs.plasma5Packages.breeze-icons;
|
|
name = "Breeze_Snow";
|
|
};
|
|
iconTheme = {
|
|
package = pkgs.papirus-icon-theme;
|
|
name = "Papirus-Dark";
|
|
};
|
|
gtk2 = {
|
|
configLocation = "${config.xdg.configHome}/gtk-2.0/gtkrc";
|
|
extraConfig = ''
|
|
gtk-alternative-button-order = 1
|
|
'';
|
|
};
|
|
gtk3.extraConfig = {
|
|
gtk-application-prefer-dark-theme = true;
|
|
gtk-decoration-layout = "icon:minimize,maximize,close";
|
|
};
|
|
gtk4.extraConfig = {
|
|
gtk-application-prefer-dark-theme = true;
|
|
gtk-decoration-layout = "icon:minimize,maximize,close";
|
|
};
|
|
};
|
|
|
|
mj.plasma.kconfig = {
|
|
kdeglobals = {
|
|
General.ColorScheme = "ArcDark";
|
|
Icons.Theme = "Papirus-Dark";
|
|
KDE.widgetStyle = "Breeze";
|
|
};
|
|
plasmarc.Theme.name = "Arc-Dark";
|
|
kscreenlockerrc.Greeter = {
|
|
Theme = "com.github.varlesh.arc-dark";
|
|
};
|
|
ksplashrc.KSplash = {
|
|
Engine = "KSplashQML";
|
|
Theme = "com.github.varlesh.arc-dark";
|
|
};
|
|
kwinrc."org.kde.kdecoration2" = {
|
|
library = "org.kde.kwin.aurorae";
|
|
theme = "__aurorae__svg__Arc-Dark";
|
|
};
|
|
kcminputrc.Mouse.cursorTheme = "Breeze_Snow";
|
|
# don't mess with GTK settings
|
|
kded5rc."Module-gtkconfig".autoload = false;
|
|
};
|
|
};
|
|
};
|
|
}
|