2023-09-14 21:52:10 +03:00
|
|
|
{
|
|
|
|
config,
|
|
|
|
pkgs,
|
|
|
|
...
|
|
|
|
}: {
|
|
|
|
config = {
|
|
|
|
services.udev.packages = [pkgs.yubikey-personalization];
|
|
|
|
|
2023-09-15 14:42:55 +03:00
|
|
|
programs.firefox.enable = true;
|
2023-09-14 21:52:10 +03:00
|
|
|
|
2023-09-17 06:46:34 +03:00
|
|
|
mj.base.users.passwd.motiejus.extraGroups = ["adbusers" "networkmanager"];
|
2023-09-14 21:52:10 +03:00
|
|
|
|
|
|
|
services = {
|
2023-09-21 05:58:09 +03:00
|
|
|
acpid.enable = true;
|
2023-09-15 13:27:12 +03:00
|
|
|
pcscd.enable = true;
|
2023-10-04 21:13:31 +03:00
|
|
|
printing = {
|
|
|
|
enable = true;
|
|
|
|
drivers = [pkgs.samsung-unified-linux-driver_4_01_17];
|
|
|
|
};
|
2023-09-18 19:13:36 +03:00
|
|
|
openssh.settings.X11Forwarding = true;
|
2023-09-18 14:58:40 +03:00
|
|
|
|
|
|
|
# TODO post-23.11
|
|
|
|
#logind.powerKey = "suspend";
|
|
|
|
#logind.powerKeyLongPress = "poweroff";
|
|
|
|
logind.extraConfig = ''
|
|
|
|
HandlePowerKey=suspend
|
|
|
|
HandlePowerKeyLongPress=poweroff
|
|
|
|
'';
|
|
|
|
|
2023-09-14 21:52:10 +03:00
|
|
|
xserver = {
|
|
|
|
enable = true;
|
2023-09-15 15:53:07 +03:00
|
|
|
layout = "us,lt";
|
|
|
|
xkbOptions = "grp:alt_shift_toggle";
|
2023-09-15 22:04:03 +03:00
|
|
|
|
2023-09-18 14:58:40 +03:00
|
|
|
desktopManager.xfce.enable = true;
|
|
|
|
windowManager.awesome.enable = true;
|
|
|
|
|
2023-09-15 22:04:03 +03:00
|
|
|
displayManager = {
|
|
|
|
sddm.enable = true;
|
|
|
|
defaultSession = "none+awesome";
|
2023-09-18 14:45:41 +03:00
|
|
|
autoLogin = {
|
|
|
|
enable = true;
|
|
|
|
user = "motiejus";
|
|
|
|
};
|
2023-09-15 22:04:03 +03:00
|
|
|
};
|
2023-09-14 21:58:06 +03:00
|
|
|
};
|
|
|
|
|
|
|
|
pipewire = {
|
|
|
|
enable = true;
|
|
|
|
alsa.enable = true;
|
|
|
|
alsa.support32Bit = true;
|
|
|
|
pulse.enable = true;
|
2023-09-14 21:52:10 +03:00
|
|
|
};
|
2023-09-17 06:46:34 +03:00
|
|
|
};
|
|
|
|
|
|
|
|
programs = {
|
2023-09-21 06:06:10 +03:00
|
|
|
adb.enable = true;
|
2023-09-17 06:46:34 +03:00
|
|
|
slock.enable = true;
|
|
|
|
nm-applet.enable = true;
|
2023-09-21 06:06:10 +03:00
|
|
|
command-not-found.enable = false;
|
2023-09-14 21:52:10 +03:00
|
|
|
};
|
|
|
|
|
2023-09-21 06:34:38 +03:00
|
|
|
virtualisation.podman = {
|
|
|
|
enable = true;
|
|
|
|
extraPackages = [pkgs.zfs];
|
|
|
|
};
|
|
|
|
|
2023-09-14 21:58:06 +03:00
|
|
|
security.rtkit.enable = true;
|
|
|
|
|
2023-09-14 21:52:10 +03:00
|
|
|
networking.networkmanager.enable = true;
|
2023-09-14 21:58:06 +03:00
|
|
|
|
2023-09-22 10:35:25 +03:00
|
|
|
# TODO gtimelog move to it's own module
|
|
|
|
programs.dconf.enable = true;
|
|
|
|
services.gnome.gnome-keyring.enable = true;
|
|
|
|
|
2023-09-14 21:58:06 +03:00
|
|
|
environment.systemPackages = with pkgs; [
|
2023-09-20 21:28:15 +03:00
|
|
|
iw
|
2023-09-15 13:01:20 +03:00
|
|
|
vlc
|
2023-09-20 21:28:15 +03:00
|
|
|
acpi
|
2023-09-15 13:01:20 +03:00
|
|
|
gimp
|
|
|
|
qgis
|
|
|
|
josm
|
2023-09-17 06:46:34 +03:00
|
|
|
xclip
|
2023-09-15 14:43:56 +03:00
|
|
|
pdftk
|
2023-09-15 14:39:04 +03:00
|
|
|
yt-dlp
|
2023-09-15 22:04:03 +03:00
|
|
|
arandr
|
2023-09-15 13:01:20 +03:00
|
|
|
pandoc
|
|
|
|
evince
|
2023-09-17 06:46:34 +03:00
|
|
|
calibre
|
2023-09-22 10:18:35 +03:00
|
|
|
gtimelog
|
2023-09-17 06:56:58 +03:00
|
|
|
chromium
|
2023-09-17 06:46:34 +03:00
|
|
|
hunspell
|
|
|
|
tigervnc
|
2023-09-15 14:39:04 +03:00
|
|
|
rtorrent
|
2023-09-17 06:46:34 +03:00
|
|
|
bsdgames
|
|
|
|
xss-lock
|
|
|
|
qpwgraph # for pipewire
|
2023-09-15 13:01:20 +03:00
|
|
|
gpicview
|
2023-10-08 23:19:55 +03:00
|
|
|
trayscale
|
2023-09-15 15:06:55 +03:00
|
|
|
rox-filer
|
2023-09-21 06:23:18 +03:00
|
|
|
distrobox
|
2023-09-18 10:22:33 +03:00
|
|
|
borgbackup
|
2023-09-18 14:42:34 +03:00
|
|
|
efibootmgr
|
2023-09-17 06:46:34 +03:00
|
|
|
winetricks
|
|
|
|
python3Full
|
|
|
|
libva-utils # intel video tests
|
2023-09-15 22:04:03 +03:00
|
|
|
pavucontrol
|
2023-09-17 06:56:58 +03:00
|
|
|
google-chrome
|
2023-09-17 06:46:34 +03:00
|
|
|
aspellDicts.en
|
|
|
|
aspellDicts.lt
|
|
|
|
libreoffice-qt
|
2023-09-15 15:04:11 +03:00
|
|
|
graphicsmagick
|
2023-09-15 14:59:00 +03:00
|
|
|
joplin-desktop
|
2023-09-15 13:01:20 +03:00
|
|
|
signal-desktop
|
|
|
|
element-desktop
|
2023-09-17 06:46:34 +03:00
|
|
|
wineWowPackages.full
|
|
|
|
hunspellDicts.en_US
|
2023-09-18 15:06:10 +03:00
|
|
|
python3Packages.ipython
|
2023-09-17 06:46:34 +03:00
|
|
|
samsung-unified-linux-driver
|
2023-09-15 13:01:20 +03:00
|
|
|
|
2023-09-30 05:44:16 +03:00
|
|
|
lld
|
|
|
|
llvm
|
|
|
|
llvm-manpages
|
|
|
|
clang-manpages
|
|
|
|
gcc_latest
|
|
|
|
|
2023-09-15 13:01:20 +03:00
|
|
|
gnome.nautilus
|
|
|
|
gnome.gnome-calculator
|
|
|
|
gnome.gnome-calendar
|
|
|
|
|
2023-09-22 10:35:25 +03:00
|
|
|
# TODO gtimelog move to it's own module
|
|
|
|
gnome.adwaita-icon-theme
|
|
|
|
|
2023-09-18 15:06:10 +03:00
|
|
|
xorg.xev
|
|
|
|
|
2023-09-17 06:46:34 +03:00
|
|
|
(texlive.combine {
|
|
|
|
inherit
|
|
|
|
(texlive)
|
|
|
|
scheme-medium
|
|
|
|
dvisvgm
|
|
|
|
dvipng
|
|
|
|
wrapfig
|
|
|
|
amsmath
|
|
|
|
ulem
|
|
|
|
hyperref
|
|
|
|
capt-of
|
|
|
|
lithuanian
|
|
|
|
hyphen-lithuanian
|
|
|
|
;
|
|
|
|
})
|
2023-09-14 21:58:06 +03:00
|
|
|
];
|
2023-09-15 14:39:04 +03:00
|
|
|
|
|
|
|
home-manager.users.motiejus = {pkgs, ...}: {
|
2023-09-17 07:39:00 +03:00
|
|
|
xdg.configFile."awesome/rc.lua".source = ./rc.lua;
|
2023-09-22 10:35:25 +03:00
|
|
|
|
2023-09-22 10:18:35 +03:00
|
|
|
# TODO
|
|
|
|
#xdg.configFile."gtimelog" = {
|
|
|
|
# source = "/home/motiejus/.local/share/gtimelog";
|
|
|
|
# target = "/home/motiejus/M-Active/timelog";
|
|
|
|
#};
|
2023-09-15 15:49:01 +03:00
|
|
|
|
2023-09-15 14:39:04 +03:00
|
|
|
programs.firefox = {
|
|
|
|
enable = true;
|
|
|
|
profiles = {
|
|
|
|
xdefault = {
|
|
|
|
isDefault = true;
|
|
|
|
settings = {
|
2023-10-04 21:44:21 +03:00
|
|
|
"browser.aboutConfig.showWarning" = false;
|
2023-09-15 14:39:04 +03:00
|
|
|
"browser.contentblocking.category" = "strict";
|
2023-10-04 21:44:21 +03:00
|
|
|
"browser.urlbar.showSearchSuggestionsFirst" = false;
|
2023-09-15 14:39:04 +03:00
|
|
|
"layout.css.prefers-color-scheme.content-override" = 0;
|
2023-09-15 14:56:37 +03:00
|
|
|
"signon.management.page.breach-alerts.enabled" = false;
|
2023-10-04 21:44:21 +03:00
|
|
|
"signon.rememberSignons" = false;
|
2023-09-15 14:39:04 +03:00
|
|
|
};
|
|
|
|
extensions = with pkgs.nur.repos.rycee.firefox-addons; [
|
2023-09-15 14:56:37 +03:00
|
|
|
bitwarden
|
2023-09-15 14:39:04 +03:00
|
|
|
ublock-origin
|
|
|
|
joplin-web-clipper
|
2023-09-15 14:56:37 +03:00
|
|
|
multi-account-containers
|
2023-09-15 14:39:04 +03:00
|
|
|
];
|
|
|
|
};
|
|
|
|
};
|
|
|
|
};
|
2023-09-17 07:39:00 +03:00
|
|
|
|
2023-10-08 23:19:55 +03:00
|
|
|
services.syncthing.tray.enable = true;
|
|
|
|
|
2023-09-19 15:20:53 +03:00
|
|
|
services.pasystray = {
|
|
|
|
enable = true;
|
|
|
|
extraOptions = ["--key-grabbing" "--notify=all"];
|
|
|
|
};
|
2023-09-18 15:04:22 +03:00
|
|
|
|
2023-09-17 07:39:00 +03:00
|
|
|
services.gpg-agent = {
|
|
|
|
enable = true;
|
|
|
|
enableSshSupport = true;
|
|
|
|
};
|
2023-09-18 13:23:48 +03:00
|
|
|
|
|
|
|
services.screen-locker = {
|
|
|
|
enable = true;
|
2023-09-20 09:44:05 +03:00
|
|
|
xautolock.enable = false;
|
2023-09-21 06:57:45 +03:00
|
|
|
lockCmd = ''${pkgs.bash}/bin/bash -c "${pkgs.coreutils}/bin/sleep 0.2; ${pkgs.xorg.xset}/bin/xset dpms force off; /run/wrappers/bin/slock"'';
|
2023-09-18 13:23:48 +03:00
|
|
|
};
|
2023-09-15 14:39:04 +03:00
|
|
|
};
|
2023-09-14 21:52:10 +03:00
|
|
|
};
|
|
|
|
}
|