Compare commits
23 Commits
cc7923c1da
...
main
| Author | SHA1 | Date | |
|---|---|---|---|
| 9979cf0497 | |||
| b7bb888e98 | |||
| 8bd1250ab4 | |||
| b4a26e1713 | |||
| 3c1b5191da | |||
| ed18e5f850 | |||
| a9f95a1675 | |||
| ecfb399127 | |||
| bf834370e5 | |||
| 5dc4d57d7e | |||
| 17fb45606b | |||
| 1825424cbb | |||
| af08b2f1b1 | |||
| 7bdbb985da | |||
| 5a87805660 | |||
| 1f0c248b24 | |||
| 31b61ddd73 | |||
| c0b60ff0e4 | |||
| 9ffa14e536 | |||
| 8c41e3b8df | |||
| a9ac5ae964 | |||
| 258c3edeab | |||
| 5d5036a83c |
@@ -19,8 +19,9 @@
|
||||
slippi.enable = true;
|
||||
niri.enable = true;
|
||||
stylix.enable = true;
|
||||
qemu.enable = true;
|
||||
# qemu.enable = true;
|
||||
flatpak.enable = true;
|
||||
gtav-battleye-hack.enable = true;
|
||||
# gdm.enable = true;
|
||||
openssh.enable = true;
|
||||
sydpkgs.overlay.enable = true;
|
||||
|
||||
@@ -9,6 +9,7 @@ in {
|
||||
config = lib.mkIf cfg.enable {
|
||||
sydnix.impermanence.cache.directories = [
|
||||
".m2" # Clojure dependencies.
|
||||
".gitlibs"
|
||||
];
|
||||
};
|
||||
}
|
||||
|
||||
@@ -77,7 +77,9 @@ in {
|
||||
};
|
||||
|
||||
systemd.user.services.jellyfin-rpc = {
|
||||
Unit.Requires = [ "jellyfin-rpc-configure.service" ];
|
||||
Unit.After = [ "jellyfin-rpc-configure.service" ];
|
||||
Install.WantedBy = [ "default.target" ];
|
||||
Service.ExecStart = lib.getExe pkgs.jellyfin-rpc;
|
||||
};
|
||||
|
||||
|
||||
@@ -56,7 +56,12 @@ in {
|
||||
Extra arguments to pass to the final wrapProgram call.
|
||||
'';
|
||||
default = [];
|
||||
type = lib.types.listOf lib.types.str;
|
||||
type = with lib.types;
|
||||
listOf
|
||||
(coercedTo
|
||||
(oneOf [str package])
|
||||
builtins.toString
|
||||
str);
|
||||
apply = lib.escapeShellArgs;
|
||||
};
|
||||
};
|
||||
|
||||
18
modules/home/prism-launcher.nix
Normal file
18
modules/home/prism-launcher.nix
Normal file
@@ -0,0 +1,18 @@
|
||||
{ config, lib, pkgs, ... }:
|
||||
|
||||
let cfg = config.sydnix.prism-launcher;
|
||||
in {
|
||||
options.sydnix.prism-launcher = {
|
||||
enable = lib.mkEnableOption "Prism Launcher";
|
||||
};
|
||||
|
||||
config = lib.mkIf cfg.enable {
|
||||
home.packages = [
|
||||
pkgs.prismlauncher
|
||||
];
|
||||
|
||||
sydnix.impermanence.directories = [
|
||||
".local/share/PrismLauncher"
|
||||
];
|
||||
};
|
||||
}
|
||||
@@ -9,14 +9,6 @@ in {
|
||||
type = lib.types.nullOr lib.types.path;
|
||||
default = config.stylix.image;
|
||||
};
|
||||
# xwayland-satellite implements rootless Xwayland in a separate application,
|
||||
# without the host compositor's involvement. It makes X11 windows appear as
|
||||
# normal windows, just like a native Xwayland integration. While it is still
|
||||
# somewhat experimental, it handles a lot of applications correctly, like
|
||||
# Steam, games and Discord.
|
||||
xwayland-satellite.enable =
|
||||
lib.mkEnableOption "xwayland-satellite starting with Niri"
|
||||
// { default = true; };
|
||||
polkit.enable =
|
||||
lib.mkEnableOption "Niri/Gnome Polkit" // { default = true; };
|
||||
swaylock.enable =
|
||||
@@ -67,26 +59,17 @@ in {
|
||||
stylix.targets.swaylock.enable = cfg.swaylock.enable;
|
||||
|
||||
services.polkit-gnome.enable = cfg.polkit.enable;
|
||||
sydnix.xwayland-satellite.enable = lib.mkDefault true;
|
||||
|
||||
# File-picker.
|
||||
home.packages = [ pkgs.nautilus ];
|
||||
|
||||
systemd.user.services.xwayland-satellite =
|
||||
lib.mkIf cfg.xwayland-satellite.enable {
|
||||
Service.ExecStart =
|
||||
["${pkgs.xwayland-satellite}/bin/xwayland-satellite"];
|
||||
Unit.After = ["niri.service"];
|
||||
Unit.PartOf = ["niri.service"];
|
||||
Install.WantedBy = ["niri.service"];
|
||||
};
|
||||
|
||||
programs.niri = {
|
||||
settings = {
|
||||
# Activates some Nixpkgs patches to help run Electron applications under
|
||||
# Wayland.
|
||||
environment = {
|
||||
NIXOS_OZONE_WL = "1";
|
||||
DISPLAY = ":0";
|
||||
XDG_CURRENT_DESKTOP = "niri";
|
||||
QT_QPA_PLATFORM = "wayland";
|
||||
ELECTRON_OZONE_PLATFORM_HINT = "auto";
|
||||
|
||||
@@ -3,3 +3,7 @@ exec loadouts/init
|
||||
exec overrides/binds.cfg
|
||||
exec overrides/settings.cfg
|
||||
|
||||
con_logfile console.log
|
||||
ip 0.0.0.0
|
||||
rcon_password monitor
|
||||
net_start
|
||||
@@ -31,6 +31,17 @@ in {
|
||||
treesit.enable = true;
|
||||
};
|
||||
|
||||
home.sessionVariables = {
|
||||
ESHELL_ALIASES_FILE = pkgs.writeText "eshell-aliases" ''
|
||||
alias cdp syd-project-cd
|
||||
alias jj jj --no-pager $*
|
||||
${lib.concatMapAttrsStringSep
|
||||
"\n"
|
||||
(alias: value: "alias ${alias} ${value} $*")
|
||||
config.home.shellAliases}
|
||||
'';
|
||||
};
|
||||
|
||||
sydnix.emacs = {
|
||||
enable = true;
|
||||
defaultEditor = true;
|
||||
@@ -40,6 +51,10 @@ in {
|
||||
pkgs.nerd-fonts.victor-mono
|
||||
pkgs.ibm-plex
|
||||
];
|
||||
extraWrapProgramArgs = [
|
||||
"--set" "ESHELL_ALIASES_FILE"
|
||||
config.home.sessionVariables.ESHELL_ALIASES_FILE
|
||||
];
|
||||
};
|
||||
};
|
||||
}
|
||||
|
||||
@@ -67,4 +67,6 @@
|
||||
syd/grammatical-framework
|
||||
syd/tabs
|
||||
syd/lsp
|
||||
syd/custom))
|
||||
syd/custom
|
||||
syd/transient
|
||||
syd/bookmark))
|
||||
|
||||
@@ -2,7 +2,10 @@
|
||||
|
||||
(require 'syd/base)
|
||||
|
||||
(use-package auctex
|
||||
(use-package auctex)
|
||||
|
||||
(use-package tex
|
||||
:straight nil ; Part of auctex.
|
||||
:config
|
||||
(add-to-list 'TeX-view-program-selection '(output-pdf "Sioyek")))
|
||||
|
||||
|
||||
10
modules/home/users/msyds/emacs/lisp/syd/bookmark.el
Normal file
10
modules/home/users/msyds/emacs/lisp/syd/bookmark.el
Normal file
@@ -0,0 +1,10 @@
|
||||
;;; -*- lexical-binding: t; -*-
|
||||
|
||||
(require 'syd/base)
|
||||
|
||||
(use-package bookmark
|
||||
:straight nil
|
||||
:custom ((bookmark-default-file
|
||||
(file-name-concat syd-data-dir "bookmarks"))))
|
||||
|
||||
(provide 'syd/bookmark)
|
||||
@@ -1,6 +1,7 @@
|
||||
;;; -*- lexical-binding: t; -*-
|
||||
|
||||
(require 'syd/base)
|
||||
(require 'syd/handle)
|
||||
(require 'syd/popups)
|
||||
(require 'syd/leader)
|
||||
|
||||
|
||||
@@ -150,7 +150,9 @@ if FILE-NAME has no TRAMP prefix."
|
||||
(eshell-last-dir-ring-file-name (file-name-concat
|
||||
syd-eshell-data-dir "lastdir"))
|
||||
(eshell-prompt-function #'syd-eshell--prompt-fn)
|
||||
(eshell-prompt-regexp syd-eshell--prompt-regexp))
|
||||
(eshell-prompt-regexp syd-eshell--prompt-regexp)
|
||||
(eshell-aliases-file (or (getenv "ESHELL_ALIASES_FILE")
|
||||
eshell-aliases-file)))
|
||||
:general
|
||||
(:keymaps 'syd-leader-open-map
|
||||
"e" #'syd-toggle-eshell)
|
||||
|
||||
@@ -3,8 +3,8 @@
|
||||
(require 'syd/base)
|
||||
|
||||
(use-package fcitx
|
||||
:custom ((fcitx-remote-command "fcitx5-remote"))
|
||||
:config
|
||||
(setq fcitx-remote-command "fcitx5-remote")
|
||||
(fcitx-aggressive-setup))
|
||||
|
||||
(provide 'syd/fcitx)
|
||||
|
||||
@@ -69,7 +69,8 @@
|
||||
(general-def
|
||||
:prefix-map 'syd-leader-insert-map
|
||||
"u" #'insert-char
|
||||
"e" #'emoji-insert)
|
||||
"e" #'emoji-insert
|
||||
"p" #'syd-insert-file-name)
|
||||
|
||||
;; This is necessary to properly rebind `universal-argument'.
|
||||
;; `universal-argument-more' is a command that provides additional prefixes
|
||||
|
||||
@@ -22,11 +22,16 @@
|
||||
"/*" "/=" "/>" "//" "__" "~~" "(*" "*)"
|
||||
"\\\\" "://"))
|
||||
;; Sitelen pona glyphs.
|
||||
(rx-let ((ideograph (any (#xF1900 . #xF198C))))
|
||||
(rx-let ((ideograph (any (#xF1900 . #xF198C)))
|
||||
(tok-punct (any "" ""))
|
||||
(arrow (any "←-↙"))
|
||||
(zwj ""))
|
||||
(ligature-set-ligatures
|
||||
'fundamental-mode
|
||||
`(("" ,(rx (* ideograph)))
|
||||
("" ,(rx "" (* ideograph))))))
|
||||
`(("" ,(rx (* (or ideograph tok-punct))))
|
||||
("" ,(rx "" (* (or ideograph tok-punct)) ""))
|
||||
("" ,(rx zwj arrow))
|
||||
("" ,(rx zwj ideograph)))))
|
||||
(global-ligature-mode 1))
|
||||
|
||||
(provide 'syd/ligature)
|
||||
|
||||
@@ -193,4 +193,55 @@ form."
|
||||
(cons mode (intern (concat (match-string 1 s) "-ts-mode"))))
|
||||
(error "Symbol `%c' is not a mode." mode))))
|
||||
|
||||
(defun syd--insert-file-name-annotation (x)
|
||||
(concat
|
||||
" "
|
||||
(propertize " " 'display `(space :align-to (- right ,(+ 1 (length x)))))
|
||||
x))
|
||||
|
||||
(defun syd-insert-file-name ()
|
||||
(interactive)
|
||||
(let* ((path (read-file-name "Path: " nil nil 'confirm))
|
||||
(proj-root (project-root (project-current)))
|
||||
(alts
|
||||
`((,(file-relative-name path proj-root) . "Project-relative")
|
||||
(,(file-relative-name path default-directory) . "File-relative")
|
||||
(,path . "Absolute")
|
||||
("... (choose a dir)")))
|
||||
(choice
|
||||
(completing-read
|
||||
"Variant: "
|
||||
(lambda (s p flag)
|
||||
(pcase flag
|
||||
('metadata
|
||||
`(metadata
|
||||
(annotation-function
|
||||
. ,(lambda (s)
|
||||
(when-let* ((desc (cdr (assoc s alts))))
|
||||
(syd--insert-file-name-annotation
|
||||
desc))))))
|
||||
(_ (all-completions s (mapcar #'car alts) p)))))))
|
||||
(if (equal choice "... (choose a root)")
|
||||
(insert (file-relative-name
|
||||
path (read-file-name "Relative to: " nil nil
|
||||
'confirm)))
|
||||
(insert choice))))
|
||||
|
||||
(defun syd-import-systemd-environment ()
|
||||
(interactive)
|
||||
(with-temp-buffer
|
||||
(shell-command "systemctl --user show-environment" (current-buffer))
|
||||
(goto-char (point-min))
|
||||
(while (re-search-forward
|
||||
(rx bol (group (+ (not "=")))
|
||||
"="
|
||||
(or (and "$'" (group (* (not "'"))) "'")
|
||||
(group (* any)))
|
||||
eol)
|
||||
nil t)
|
||||
(let ((var (match-string 1))
|
||||
(val (or (match-string 2)
|
||||
(match-string 3))))
|
||||
(setenv var val)))))
|
||||
|
||||
(provide 'syd/prelude)
|
||||
|
||||
@@ -1,6 +1,7 @@
|
||||
;;; -*- lexical-binding: t; -*-
|
||||
|
||||
(require 'syd/base)
|
||||
(require 'syd/keymaps)
|
||||
(require 'syd/completion) ; For `consult'.
|
||||
(require 'consult)
|
||||
|
||||
|
||||
10
modules/home/users/msyds/emacs/lisp/syd/transient.el
Normal file
10
modules/home/users/msyds/emacs/lisp/syd/transient.el
Normal file
@@ -0,0 +1,10 @@
|
||||
;;; -*- lexical-binding: t; -*-
|
||||
|
||||
(require 'syd/base)
|
||||
|
||||
(use-package transient
|
||||
:straight nil
|
||||
:custom ((transient-history-file
|
||||
(file-name-concat syd-data-dir "transient/history.el"))))
|
||||
|
||||
(provide 'syd/transient)
|
||||
14
modules/home/users/msyds/zathura.nix
Normal file
14
modules/home/users/msyds/zathura.nix
Normal file
@@ -0,0 +1,14 @@
|
||||
{ config, lib, pkgs, ... }:
|
||||
|
||||
let cfg = config.sydnix.users.msyds.zathura;
|
||||
in {
|
||||
options.sydnix.users.msyds.zathura = {
|
||||
enable = lib.mkEnableOption "Zathura";
|
||||
};
|
||||
|
||||
config = lib.mkIf cfg.enable {
|
||||
programs.zathura = {
|
||||
enable = true;
|
||||
};
|
||||
};
|
||||
}
|
||||
38
modules/home/xwayland-satellite.nix
Normal file
38
modules/home/xwayland-satellite.nix
Normal file
@@ -0,0 +1,38 @@
|
||||
{ config, lib, pkgs, ... }:
|
||||
|
||||
let cfg = config.sydnix.xwayland-satellite;
|
||||
in {
|
||||
options.sydnix.xwayland-satellite = {
|
||||
# xwayland-satellite implements rootless Xwayland in a separate
|
||||
# application, without the host compositor's involvement. It makes
|
||||
# X11 windows appear as normal windows, just like a native
|
||||
# Xwayland integration. While it is still somewhat experimental,
|
||||
# it handles a lot of applications correctly, like Steam, games
|
||||
# and Discord.
|
||||
enable = lib.mkEnableOption "XWayland outside your Wayland";
|
||||
};
|
||||
|
||||
config = lib.mkIf cfg.enable {
|
||||
systemd.user.services.xwayland-satellite =
|
||||
let xwayland-satellite =
|
||||
pkgs.xwayland-satellite.override { withSystemd = true; };
|
||||
in {
|
||||
Unit = {
|
||||
Description = "Xwayland outside your Wayland";
|
||||
BindsTo = [ "graphical-session.target" ];
|
||||
PartOf = [ "graphical-session.target" ];
|
||||
After = [ "graphical-session.target" ];
|
||||
Requisite = [ "graphical-session.target" ];
|
||||
};
|
||||
Service = {
|
||||
Type = "notify";
|
||||
NotifyAccess = "all";
|
||||
ExecStart = lib.getExe xwayland-satellite;
|
||||
StandardOutput = "journal";
|
||||
ExecStartPost = "systemctl --user set-environment DISPLAY=:0";
|
||||
ExecStop = "systemctl --user unset-environment DISPLAY";
|
||||
};
|
||||
Install.WantedBy = [ "graphical-session.target" ];
|
||||
};
|
||||
};
|
||||
}
|
||||
@@ -12,6 +12,13 @@ in {
|
||||
enableDynamicTheming = false;
|
||||
};
|
||||
|
||||
# Start after xwayland-satellite, if possible. So DMS can start
|
||||
# with the DISPLAY env var set.
|
||||
systemd.user.services.dms = {
|
||||
wants = ["xwayland-satellite.service"];
|
||||
after = ["xwayland-satellite.service"];
|
||||
};
|
||||
|
||||
services.displayManager.dms-greeter = {
|
||||
enable = true;
|
||||
compositor.name = assert config.sydnix.niri.enable; "niri";
|
||||
|
||||
@@ -1,6 +1,8 @@
|
||||
{ config, lib, pkgs, ... }:
|
||||
|
||||
let cfg = config.sydnix.deertopia.gitea;
|
||||
let
|
||||
cfg = config.sydnix.deertopia.gitea;
|
||||
commas = lib.concatStringsSep ",";
|
||||
in {
|
||||
options.sydnix.deertopia.gitea = {
|
||||
enable = lib.mkEnableOption "Gitea";
|
||||
@@ -62,6 +64,38 @@ in {
|
||||
DISABLE_REGISTRATION = true;
|
||||
ENABLE_NOTIFY_MAIL = true;
|
||||
};
|
||||
"repository.pull-request" = {
|
||||
CLOSE_KEYWORDS = commas [
|
||||
# en
|
||||
"close" "closes" "closed" "fix" "fixes" "fixed" "resolve"
|
||||
"resolves" "resolved"
|
||||
# tok
|
||||
"pini e"
|
||||
# ko
|
||||
"해결" "해결합니다" "해결했다"
|
||||
"종료" "종료합니다" "중료한다" "중료해" "중료하다"
|
||||
"수정" "수정했습니다" "중료한다" "중료해" "중료하다"
|
||||
];
|
||||
REOPEN_KEYWORDS = commas [
|
||||
# en
|
||||
"reopen" "reopens" "reopened"
|
||||
# tok
|
||||
"open sin e" "pakala sin e"
|
||||
"li pakala sin" "li pakalan sin"
|
||||
# ko
|
||||
"재개" "재개합니다" "다시 열기" "다시 엽니다" "다시 여다"
|
||||
"다시 연다"
|
||||
];
|
||||
WORK_IN_PROGRESS_PREFIXES = commas [
|
||||
# en
|
||||
"WIP:" "[WIP]"
|
||||
# tok
|
||||
"pini ala:" "awen pali:"
|
||||
# ko
|
||||
"공사 중:" "공사중:" "중:" "[중]" "中:" "[中]"
|
||||
];
|
||||
DEFAULT_MERGE_STYLE = "rebase";
|
||||
};
|
||||
mailer = {
|
||||
ENABLED = true;
|
||||
FROM = "Gitea <no-reply@deertopia.net>";
|
||||
|
||||
17
modules/nixos/gtav-battleye-hack.nix
Normal file
17
modules/nixos/gtav-battleye-hack.nix
Normal file
@@ -0,0 +1,17 @@
|
||||
{ config, lib, pkgs, ... }:
|
||||
|
||||
let cfg = config.sydnix.gtav-battleye-hack;
|
||||
in {
|
||||
options.sydnix.gtav-battleye-hack = {
|
||||
enable = lib.mkEnableOption
|
||||
"Grand Theft Auto V Online BattlEye workaround";
|
||||
};
|
||||
|
||||
config = lib.mkIf cfg.enable {
|
||||
networking.hosts."0.0.0.0" = [
|
||||
"paradise-s1.battleye.com"
|
||||
"test-s1.battleye.com"
|
||||
"paradiseenhanced-s1.battleye.com"
|
||||
];
|
||||
};
|
||||
}
|
||||
@@ -46,6 +46,9 @@
|
||||
kdeconnect.enable = true;
|
||||
qalculate.enable = true;
|
||||
toki-pona.enable = true;
|
||||
prism-launcher.enable = on "sydpc";
|
||||
flatpak.enable = on "sydpc";
|
||||
drawing-tablet.enable = on "sydpc";
|
||||
sops = {
|
||||
enable = true;
|
||||
keyFile = "/persist/private-keys/age/crumb";
|
||||
@@ -64,6 +67,7 @@
|
||||
fcitx5.enable = true;
|
||||
anki.enable = true;
|
||||
mumble.enable = true;
|
||||
rnote.enable = on "sydpc";
|
||||
};
|
||||
users.msyds = {
|
||||
discord.enable = true;
|
||||
@@ -74,7 +78,8 @@
|
||||
syncthing.enable = true;
|
||||
fonts.enable = true;
|
||||
dank-material-shell.enable = true;
|
||||
sioyek.enable = true;
|
||||
sioyek.enable = on "fruitbook";
|
||||
zathura.enable = on "sydpc";
|
||||
};
|
||||
};
|
||||
|
||||
|
||||
Reference in New Issue
Block a user