2023-11-26 20:26:49 +00:00
|
|
|
{
|
|
|
|
config,
|
|
|
|
lib,
|
|
|
|
pkgs,
|
|
|
|
...
|
|
|
|
}: let
|
2023-10-28 20:25:06 +00:00
|
|
|
# window-screenshot = pkgs.writeTextFile "window-screenshot.nu" (builtins.readFile ../../other/scripts/desktop/window-screenshot.nu);
|
2023-04-22 11:10:34 +00:00
|
|
|
window-screenshot = pkgs.writeShellScriptBin "window-screenshot.sh" (builtins.readFile ../../other/scripts/desktop/window-screenshot.sh);
|
2023-02-13 11:54:21 +00:00
|
|
|
# desktop-ctl = pkgs.writeShellScriptBin "desktop-ctl.sh" (builtins.readFile ../scripts/desktop/desktop-ctl.sh);
|
2023-11-26 20:26:49 +00:00
|
|
|
desktop-ctl = import ../../other/scripts/desktop/desktopctl.nix {inherit pkgs;};
|
2023-11-14 11:22:19 +00:00
|
|
|
# TODO: fix ocr screenshot script
|
2023-04-22 11:10:34 +00:00
|
|
|
ocr-screenshot = pkgs.writeShellScriptBin "ocr-screenshot.sh" (builtins.readFile ../../other/scripts/desktop/ocr-screenshot.sh);
|
2023-02-13 11:54:21 +00:00
|
|
|
# rofi calculator copied from https://github.com/barbuk/menu-qalc
|
2023-04-22 11:10:34 +00:00
|
|
|
menu-qalc = pkgs.writeShellScriptBin "menu-qalc" (builtins.readFile ../../other/scripts/desktop/menu-qalc.sh);
|
2023-11-26 20:26:49 +00:00
|
|
|
in
|
|
|
|
with lib; {
|
|
|
|
imports = [
|
|
|
|
./audio.nix
|
|
|
|
./gaming.nix
|
|
|
|
./creative.nix # TODO: more fine grained choices, not every setup needs fspy or rawtherapee
|
|
|
|
./dunst.nix
|
|
|
|
./compositing.nix
|
|
|
|
./ios-compat.nix
|
|
|
|
./syncthing.nix
|
|
|
|
./kdeconnect.nix
|
|
|
|
./themeing.nix
|
|
|
|
./cloud.nix
|
|
|
|
./networking.nix
|
|
|
|
./polybar.nix
|
|
|
|
./social.nix
|
|
|
|
./mail.nix
|
|
|
|
./specific-hardware
|
|
|
|
./evremap.nix
|
|
|
|
./xmonad.nix
|
2024-03-03 13:22:10 +00:00
|
|
|
./fonts.nix
|
2023-11-26 20:26:49 +00:00
|
|
|
./firefox.nix
|
|
|
|
];
|
|
|
|
|
|
|
|
i18n.inputMethod = {
|
2023-11-14 11:22:19 +00:00
|
|
|
enabled = "fcitx5";
|
|
|
|
fcitx5.addons = with pkgs; [
|
2023-11-26 20:26:49 +00:00
|
|
|
fcitx5-mozc
|
|
|
|
fcitx5-gtk
|
2023-11-14 11:22:19 +00:00
|
|
|
];
|
2023-11-26 20:26:49 +00:00
|
|
|
};
|
2023-02-13 11:54:21 +00:00
|
|
|
|
2023-11-26 20:26:49 +00:00
|
|
|
programs.seahorse.enable = true;
|
|
|
|
security.pam.services.jade.enableGnomeKeyring = true;
|
2023-02-13 11:54:21 +00:00
|
|
|
|
2023-11-26 20:26:49 +00:00
|
|
|
virtualisation.libvirtd.enable = true;
|
2023-02-13 11:54:21 +00:00
|
|
|
|
2023-11-26 20:26:49 +00:00
|
|
|
services = {
|
|
|
|
printing.enable = true;
|
|
|
|
gnome.gnome-keyring.enable = true;
|
2023-02-13 11:54:21 +00:00
|
|
|
|
2023-11-26 20:26:49 +00:00
|
|
|
xserver = {
|
2023-11-14 11:22:19 +00:00
|
|
|
enable = true;
|
2023-09-08 23:10:22 +00:00
|
|
|
|
2024-02-15 17:48:43 +00:00
|
|
|
xkb = {
|
|
|
|
layout = "us";
|
|
|
|
variant = "altgr-intl";
|
|
|
|
};
|
2023-09-08 23:10:22 +00:00
|
|
|
|
2023-11-26 20:26:49 +00:00
|
|
|
libinput = {
|
|
|
|
enable = true;
|
|
|
|
};
|
2023-09-08 23:10:22 +00:00
|
|
|
|
2023-11-26 20:26:49 +00:00
|
|
|
desktopManager = {
|
|
|
|
xterm.enable = false;
|
|
|
|
};
|
2023-09-08 23:10:22 +00:00
|
|
|
|
2023-11-26 20:26:49 +00:00
|
|
|
displayManager = {
|
|
|
|
defaultSession = "none+xmonad";
|
|
|
|
gdm.enable = true;
|
|
|
|
};
|
2023-10-28 20:25:06 +00:00
|
|
|
|
2023-11-26 20:26:49 +00:00
|
|
|
windowManager.xmonad = {
|
|
|
|
enable = true;
|
|
|
|
};
|
|
|
|
};
|
2023-11-14 11:22:19 +00:00
|
|
|
};
|
2023-11-26 20:26:49 +00:00
|
|
|
|
|
|
|
programs.xss-lock = {
|
2023-11-14 11:22:19 +00:00
|
|
|
enable = true;
|
2023-11-28 20:50:03 +00:00
|
|
|
lockerCommand = "${pkgs.i3lock}/bin/i3lock -c 1d2021";
|
2023-11-14 11:22:19 +00:00
|
|
|
};
|
2023-02-13 11:54:21 +00:00
|
|
|
|
2023-11-26 20:26:49 +00:00
|
|
|
services.illum.enable = true;
|
|
|
|
services.avahi.enable = true;
|
2023-02-13 11:54:21 +00:00
|
|
|
|
2023-11-26 20:26:49 +00:00
|
|
|
services.smartd = {
|
2023-11-14 11:22:19 +00:00
|
|
|
enable = true;
|
2023-11-26 20:26:49 +00:00
|
|
|
notifications.x11.enable = true;
|
|
|
|
notifications.test = true;
|
|
|
|
};
|
|
|
|
|
|
|
|
home-manager.users.jade = {pkgs, ...}: {
|
2024-02-17 22:34:34 +00:00
|
|
|
programs.ssh = {
|
|
|
|
controlMaster = "yes";
|
|
|
|
};
|
|
|
|
|
2023-11-26 20:26:49 +00:00
|
|
|
programs.bat = {
|
|
|
|
# TODO: more config
|
|
|
|
enable = true;
|
|
|
|
};
|
|
|
|
programs.rofi = {
|
|
|
|
enable = true;
|
|
|
|
theme = ../../other/rofi-themes/applauncher.rasi;
|
|
|
|
};
|
|
|
|
home.packages = with pkgs; [
|
|
|
|
just
|
|
|
|
bacon
|
|
|
|
|
|
|
|
magic-wormhole-rs
|
|
|
|
|
|
|
|
yt-dlp
|
|
|
|
|
|
|
|
i3lock
|
|
|
|
rofimoji
|
|
|
|
feh
|
|
|
|
xorg.xinput
|
|
|
|
arandr
|
|
|
|
flameshot
|
|
|
|
tesseract5
|
|
|
|
imagemagick
|
|
|
|
xclip
|
|
|
|
xmacro
|
|
|
|
xorg.xev
|
|
|
|
|
|
|
|
syncplay
|
|
|
|
|
|
|
|
# filemanager
|
|
|
|
xfce.thunar
|
|
|
|
xfce.tumbler
|
|
|
|
xfce.thunar-archive-plugin
|
|
|
|
gnome.file-roller
|
|
|
|
# media/file viewers
|
|
|
|
vlc
|
|
|
|
mpv
|
|
|
|
evince
|
|
|
|
nomacs
|
|
|
|
|
|
|
|
# from environment.systemPackages cleanup
|
|
|
|
font-manager
|
|
|
|
xdotool
|
|
|
|
xorg.xwininfo
|
|
|
|
gparted
|
2024-02-13 20:22:25 +00:00
|
|
|
# uhk-agent
|
2023-11-26 20:26:49 +00:00
|
|
|
cool-retro-term
|
|
|
|
xdg-desktop-portal-gtk
|
|
|
|
virt-manager
|
|
|
|
ddccontrol-db
|
|
|
|
firebird-emu
|
|
|
|
gitg
|
|
|
|
gpick
|
|
|
|
qdirstat
|
|
|
|
ffmpeg_5
|
|
|
|
|
|
|
|
# external
|
|
|
|
libnotify
|
|
|
|
i3lock
|
|
|
|
rofi
|
|
|
|
rofimoji
|
|
|
|
feh
|
|
|
|
xorg.xinput
|
|
|
|
arandr
|
|
|
|
flameshot
|
|
|
|
tesseract5
|
|
|
|
imagemagick
|
|
|
|
xclip
|
|
|
|
kitty
|
|
|
|
xmacro
|
|
|
|
brightnessctl
|
|
|
|
drawing
|
|
|
|
libqalculate
|
|
|
|
|
|
|
|
# custom scripts
|
|
|
|
window-screenshot
|
|
|
|
desktop-ctl
|
|
|
|
ocr-screenshot
|
|
|
|
menu-qalc
|
|
|
|
|
|
|
|
# meow
|
|
|
|
oneko
|
2024-01-11 15:34:08 +00:00
|
|
|
|
|
|
|
plover.dev
|
2024-02-28 16:06:04 +00:00
|
|
|
|
|
|
|
mupdf
|
|
|
|
inotify-tools
|
2023-11-26 20:26:49 +00:00
|
|
|
];
|
|
|
|
xsession = {
|
|
|
|
enable = true;
|
|
|
|
};
|
2023-02-13 11:54:21 +00:00
|
|
|
};
|
2023-11-26 20:26:49 +00:00
|
|
|
}
|