2023-11-26 21:26:49 +01:00
|
|
|
{
|
|
|
|
config,
|
|
|
|
lib,
|
|
|
|
pkgs,
|
|
|
|
...
|
|
|
|
}: let
|
2023-10-28 22:25:06 +02:00
|
|
|
# window-screenshot = pkgs.writeTextFile "window-screenshot.nu" (builtins.readFile ../../other/scripts/desktop/window-screenshot.nu);
|
2023-04-22 13:10:34 +02:00
|
|
|
window-screenshot = pkgs.writeShellScriptBin "window-screenshot.sh" (builtins.readFile ../../other/scripts/desktop/window-screenshot.sh);
|
2023-02-13 12:54:21 +01:00
|
|
|
# desktop-ctl = pkgs.writeShellScriptBin "desktop-ctl.sh" (builtins.readFile ../scripts/desktop/desktop-ctl.sh);
|
2023-11-26 21:26:49 +01:00
|
|
|
desktop-ctl = import ../../other/scripts/desktop/desktopctl.nix {inherit pkgs;};
|
2023-11-14 12:22:19 +01:00
|
|
|
# TODO: fix ocr screenshot script
|
2023-04-22 13:10:34 +02:00
|
|
|
ocr-screenshot = pkgs.writeShellScriptBin "ocr-screenshot.sh" (builtins.readFile ../../other/scripts/desktop/ocr-screenshot.sh);
|
2023-02-13 12:54:21 +01:00
|
|
|
# rofi calculator copied from https://github.com/barbuk/menu-qalc
|
2023-04-22 13:10:34 +02:00
|
|
|
menu-qalc = pkgs.writeShellScriptBin "menu-qalc" (builtins.readFile ../../other/scripts/desktop/menu-qalc.sh);
|
2023-11-26 21:26:49 +01:00
|
|
|
in
|
|
|
|
with lib; {
|
|
|
|
imports = [
|
|
|
|
./gaming.nix
|
|
|
|
./creative.nix # TODO: more fine grained choices, not every setup needs fspy or rawtherapee
|
|
|
|
./ios-compat.nix
|
|
|
|
./syncthing.nix
|
|
|
|
./kdeconnect.nix
|
|
|
|
./themeing.nix
|
|
|
|
./cloud.nix
|
|
|
|
./networking.nix
|
|
|
|
./social.nix
|
|
|
|
./mail.nix
|
2024-03-03 14:22:10 +01:00
|
|
|
./fonts.nix
|
2023-11-26 21:26:49 +01:00
|
|
|
./firefox.nix
|
2024-03-05 13:10:08 +01:00
|
|
|
./x.nix
|
2024-10-03 01:52:00 +02:00
|
|
|
./obs.nix
|
2023-11-26 21:26:49 +01:00
|
|
|
];
|
|
|
|
|
|
|
|
programs.seahorse.enable = true;
|
|
|
|
security.pam.services.jade.enableGnomeKeyring = true;
|
2023-02-13 12:54:21 +01:00
|
|
|
|
2023-11-26 21:26:49 +01:00
|
|
|
virtualisation.libvirtd.enable = true;
|
2023-02-13 12:54:21 +01:00
|
|
|
|
2023-11-26 21:26:49 +01:00
|
|
|
services = {
|
2024-04-03 17:54:04 +02:00
|
|
|
printing = {
|
|
|
|
enable = true;
|
|
|
|
drivers = [
|
|
|
|
pkgs.gutenprint
|
|
|
|
pkgs.gutenprintBin
|
|
|
|
pkgs.hplip
|
|
|
|
pkgs.brlaser
|
|
|
|
pkgs.brgenml1lpr
|
|
|
|
pkgs.brgenml1cupswrapper
|
|
|
|
pkgs.ptouch-driver
|
|
|
|
];
|
|
|
|
};
|
2023-11-26 21:26:49 +01:00
|
|
|
gnome.gnome-keyring.enable = true;
|
2023-11-14 12:22:19 +01:00
|
|
|
};
|
2023-11-26 21:26:49 +01:00
|
|
|
|
|
|
|
programs.xss-lock = {
|
2023-11-14 12:22:19 +01:00
|
|
|
enable = true;
|
2023-11-28 21:50:03 +01:00
|
|
|
lockerCommand = "${pkgs.i3lock}/bin/i3lock -c 1d2021";
|
2023-11-14 12:22:19 +01:00
|
|
|
};
|
2023-02-13 12:54:21 +01:00
|
|
|
|
2023-11-26 21:26:49 +01:00
|
|
|
services.illum.enable = true;
|
2024-04-03 17:54:04 +02:00
|
|
|
services.avahi = {
|
|
|
|
enable = true;
|
2024-05-06 21:32:14 +02:00
|
|
|
nssmdns4 = true;
|
2024-04-03 17:54:04 +02:00
|
|
|
openFirewall = true;
|
|
|
|
};
|
2023-11-26 21:26:49 +01:00
|
|
|
services.smartd = {
|
2023-11-14 12:22:19 +01:00
|
|
|
enable = true;
|
2023-11-26 21:26:49 +01:00
|
|
|
notifications.test = true;
|
|
|
|
};
|
|
|
|
|
|
|
|
home-manager.users.jade = {pkgs, ...}: {
|
2024-10-11 08:51:11 +02:00
|
|
|
home.sessionVariables = {
|
|
|
|
"S10E_JRNL_FILE_LOC" = "/home/jade/Docs/jrnl.md";
|
|
|
|
};
|
2024-02-17 23:34:34 +01:00
|
|
|
programs.ssh = {
|
|
|
|
controlMaster = "yes";
|
|
|
|
};
|
|
|
|
|
2023-11-26 21:26:49 +01: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
|
2024-09-26 19:15:58 +02:00
|
|
|
gscreenshot
|
2023-11-26 21:26:49 +01:00
|
|
|
|
|
|
|
syncplay
|
|
|
|
|
|
|
|
# filemanager
|
|
|
|
xfce.thunar
|
|
|
|
xfce.tumbler
|
|
|
|
xfce.thunar-archive-plugin
|
2024-07-30 22:06:36 +02:00
|
|
|
file-roller
|
2023-11-26 21:26:49 +01:00
|
|
|
# media/file viewers
|
|
|
|
vlc
|
|
|
|
mpv
|
|
|
|
evince
|
|
|
|
nomacs
|
2024-04-16 21:36:26 +02:00
|
|
|
jellyfin-media-player
|
2023-11-26 21:26:49 +01:00
|
|
|
|
|
|
|
# from environment.systemPackages cleanup
|
|
|
|
gparted
|
|
|
|
xdg-desktop-portal-gtk
|
|
|
|
virt-manager
|
|
|
|
ddccontrol-db
|
|
|
|
firebird-emu
|
|
|
|
gitg
|
|
|
|
gpick
|
|
|
|
qdirstat
|
2024-07-30 22:06:36 +02:00
|
|
|
ffmpeg_7-full
|
2023-11-26 21:26:49 +01:00
|
|
|
|
|
|
|
# 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 16:34:08 +01:00
|
|
|
|
|
|
|
plover.dev
|
2024-02-28 17:06:04 +01:00
|
|
|
|
|
|
|
mupdf
|
|
|
|
inotify-tools
|
2024-06-12 13:26:05 +02:00
|
|
|
|
|
|
|
logseq
|
2023-11-26 21:26:49 +01:00
|
|
|
];
|
|
|
|
xsession = {
|
|
|
|
enable = true;
|
|
|
|
};
|
2023-02-13 12:54:21 +01:00
|
|
|
};
|
2023-11-26 21:26:49 +01:00
|
|
|
}
|