Compare commits
39 Commits
902d9e4c38
...
main
| Author | SHA1 | Date | |
|---|---|---|---|
| 50ac93c727 | |||
| ef2f6041fd | |||
| cb4164f1de | |||
| f25b53bbfd | |||
| 664b43f22a | |||
| 539cff1b68 | |||
| eaa2de3e93 | |||
| 2073d0eacd | |||
| a900fe5664 | |||
| 1dbd1d78ce | |||
| bec92689f7 | |||
| 087d5efaaf | |||
| 148e9019f4 | |||
| 05fd169c91 | |||
| 312fa1e42c | |||
| a55570bbf6 | |||
| a35e9b63c1 | |||
| b7d32b5bc7 | |||
| 9979cf0497 | |||
| b7bb888e98 | |||
| 8bd1250ab4 | |||
| b4a26e1713 | |||
| 3c1b5191da | |||
| ed18e5f850 | |||
| a9f95a1675 | |||
| ecfb399127 | |||
| bf834370e5 | |||
| 5dc4d57d7e | |||
| 17fb45606b | |||
| 1825424cbb | |||
| af08b2f1b1 | |||
| 7bdbb985da | |||
| 5a87805660 | |||
| 1f0c248b24 | |||
| 31b61ddd73 | |||
| c0b60ff0e4 | |||
| 9ffa14e536 | |||
| 8c41e3b8df | |||
| a9ac5ae964 |
54
flake.lock
generated
54
flake.lock
generated
@@ -161,11 +161,11 @@
|
||||
"nixpkgs-lib": "nixpkgs-lib"
|
||||
},
|
||||
"locked": {
|
||||
"lastModified": 1772408722,
|
||||
"narHash": "sha256-rHuJtdcOjK7rAHpHphUb1iCvgkU3GpfvicLMwwnfMT0=",
|
||||
"lastModified": 1775087534,
|
||||
"narHash": "sha256-91qqW8lhL7TLwgQWijoGBbiD4t7/q75KTi8NxjVmSmA=",
|
||||
"owner": "hercules-ci",
|
||||
"repo": "flake-parts",
|
||||
"rev": "f20dc5d9b8027381c474144ecabc9034d6a839a3",
|
||||
"rev": "3107b77cd68437b9a76194f0f7f9c55f2329ca5b",
|
||||
"type": "github"
|
||||
},
|
||||
"original": {
|
||||
@@ -420,14 +420,15 @@
|
||||
"inputs": {
|
||||
"flake-compat": "flake-compat",
|
||||
"flake-parts": "flake-parts",
|
||||
"nixpkgs": "nixpkgs_5"
|
||||
"nixpkgs": "nixpkgs_5",
|
||||
"nixpkgs-nixcord": "nixpkgs-nixcord"
|
||||
},
|
||||
"locked": {
|
||||
"lastModified": 1772813986,
|
||||
"narHash": "sha256-x0fD+LL+O99p36c2UnjnHvVq4/7TvGH/8G5lTNIJBCo=",
|
||||
"lastModified": 1777125640,
|
||||
"narHash": "sha256-jKmRu5PknoI0pk3WEqMhVReosUubUCq3M/izEQWzb+4=",
|
||||
"owner": "KaylorBen",
|
||||
"repo": "nixcord",
|
||||
"rev": "e433a2919eb9b3a8c85ab3017c08685816e63a66",
|
||||
"rev": "0e738683dd7551a9cbfa343397b1592dfd785b7e",
|
||||
"type": "github"
|
||||
},
|
||||
"original": {
|
||||
@@ -469,11 +470,11 @@
|
||||
},
|
||||
"nixpkgs-lib": {
|
||||
"locked": {
|
||||
"lastModified": 1772328832,
|
||||
"narHash": "sha256-e+/T/pmEkLP6BHhYjx6GmwP5ivonQQn0bJdH9YrRB+Q=",
|
||||
"lastModified": 1774748309,
|
||||
"narHash": "sha256-+U7gF3qxzwD5TZuANzZPeJTZRHS29OFQgkQ2kiTJBIQ=",
|
||||
"owner": "nix-community",
|
||||
"repo": "nixpkgs.lib",
|
||||
"rev": "c185c7a5e5dd8f9add5b2f8ebeff00888b070742",
|
||||
"rev": "333c4e0545a6da976206c74db8773a1645b5870a",
|
||||
"type": "github"
|
||||
},
|
||||
"original": {
|
||||
@@ -482,6 +483,22 @@
|
||||
"type": "github"
|
||||
}
|
||||
},
|
||||
"nixpkgs-nixcord": {
|
||||
"locked": {
|
||||
"lastModified": 1776734388,
|
||||
"narHash": "sha256-vl3dkhlE5gzsItuHoEMVe+DlonsK+0836LIRDnm6MXQ=",
|
||||
"owner": "NixOS",
|
||||
"repo": "nixpkgs",
|
||||
"rev": "10e7ad5bbcb421fe07e3a4ad53a634b0cd57ffac",
|
||||
"type": "github"
|
||||
},
|
||||
"original": {
|
||||
"owner": "NixOS",
|
||||
"ref": "nixos-25.11",
|
||||
"repo": "nixpkgs",
|
||||
"type": "github"
|
||||
}
|
||||
},
|
||||
"nixpkgs-stable": {
|
||||
"locked": {
|
||||
"lastModified": 1742751704,
|
||||
@@ -580,11 +597,11 @@
|
||||
},
|
||||
"nixpkgs_5": {
|
||||
"locked": {
|
||||
"lastModified": 1772465433,
|
||||
"narHash": "sha256-ywy9troNEfpgh0Ee+zaV1UTgU8kYBVKtvPSxh6clYGU=",
|
||||
"lastModified": 1776734388,
|
||||
"narHash": "sha256-vl3dkhlE5gzsItuHoEMVe+DlonsK+0836LIRDnm6MXQ=",
|
||||
"owner": "NixOS",
|
||||
"repo": "nixpkgs",
|
||||
"rev": "c581273b8d5bdf1c6ce7e0a54da9841e6a763913",
|
||||
"rev": "10e7ad5bbcb421fe07e3a4ad53a634b0cd57ffac",
|
||||
"type": "github"
|
||||
},
|
||||
"original": {
|
||||
@@ -802,16 +819,15 @@
|
||||
]
|
||||
},
|
||||
"locked": {
|
||||
"lastModified": 1773275674,
|
||||
"narHash": "sha256-kULSjFWDoDatz31aIses5q51ESUi0ASUc3MKmBYLnRY=",
|
||||
"ref": "fcitx5-toki-pona",
|
||||
"rev": "03f6a67a0a3b3c00ff4566147eddb0123cfe3d14",
|
||||
"revCount": 38,
|
||||
"lastModified": 1776985528,
|
||||
"narHash": "sha256-32WDZGOJBjq3Jr4DRtumqXoX5t25/T0cQ7CzAqT1OnE=",
|
||||
"ref": "refs/heads/main",
|
||||
"rev": "40de55454366e390e6972f5e9a9b1444df49ed18",
|
||||
"revCount": 40,
|
||||
"type": "git",
|
||||
"url": "https://git.deertopia.net/msyds/sydpkgs"
|
||||
},
|
||||
"original": {
|
||||
"ref": "fcitx5-toki-pona",
|
||||
"type": "git",
|
||||
"url": "https://git.deertopia.net/msyds/sydpkgs"
|
||||
}
|
||||
|
||||
@@ -33,7 +33,7 @@
|
||||
syd-fcitx5-tables.url =
|
||||
"git+https://git.deertopia.net/msyds/syd-fcitx5-tables";
|
||||
sydpkgs = {
|
||||
url = "git+https://git.deertopia.net/msyds/sydpkgs?ref=fcitx5-toki-pona";
|
||||
url = "git+https://git.deertopia.net/msyds/sydpkgs";
|
||||
inputs.nixpkgs.follows = "nixpkgs";
|
||||
};
|
||||
};
|
||||
|
||||
@@ -10,6 +10,8 @@
|
||||
v4l2loopback
|
||||
];
|
||||
|
||||
programs.dconf.enable = true;
|
||||
|
||||
sydnix = {
|
||||
filesystemType = "btrfs";
|
||||
wifi.enable = true;
|
||||
@@ -19,8 +21,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;
|
||||
};
|
||||
|
||||
|
||||
22
modules/home/easyeffects.nix
Normal file
22
modules/home/easyeffects.nix
Normal file
@@ -0,0 +1,22 @@
|
||||
{ config, lib, pkgs, osConfig, ... }:
|
||||
|
||||
let cfg = config.sydnix.easyeffects;
|
||||
in {
|
||||
options.sydnix.easyeffects = {
|
||||
enable = lib.mkEnableOption "Easyeffects";
|
||||
};
|
||||
|
||||
config = lib.mkIf cfg.enable {
|
||||
services.easyeffects = {
|
||||
enable = true;
|
||||
extraPresets.thanks-ash =
|
||||
builtins.fromJSON
|
||||
(builtins.readFile ./easyeffects/thanks-ash.json);
|
||||
};
|
||||
|
||||
warnings = lib.optional (!osConfig.programs.dconf.enable) ''
|
||||
Easyeffects requires services.dconf.enable = true in the NixOS
|
||||
config.
|
||||
'';
|
||||
};
|
||||
}
|
||||
777
modules/home/easyeffects/thanks-ash.json
Normal file
777
modules/home/easyeffects/thanks-ash.json
Normal file
@@ -0,0 +1,777 @@
|
||||
{
|
||||
"input": {
|
||||
"blocklist": [],
|
||||
"equalizer#0": {
|
||||
"balance": 0.0,
|
||||
"bypass": false,
|
||||
"input-gain": 0.0,
|
||||
"left": {
|
||||
"band0": {
|
||||
"frequency": 22.4,
|
||||
"gain": 0.0,
|
||||
"mode": "RLC (BT)",
|
||||
"mute": false,
|
||||
"q": 4.36,
|
||||
"slope": "x1",
|
||||
"solo": false,
|
||||
"type": "Bell",
|
||||
"width": 4.0
|
||||
},
|
||||
"band1": {
|
||||
"frequency": 27.8,
|
||||
"gain": 0.0,
|
||||
"mode": "RLC (BT)",
|
||||
"mute": false,
|
||||
"q": 4.36,
|
||||
"slope": "x1",
|
||||
"solo": false,
|
||||
"type": "Bell",
|
||||
"width": 4.0
|
||||
},
|
||||
"band10": {
|
||||
"frequency": 194.06,
|
||||
"gain": 0.0,
|
||||
"mode": "RLC (BT)",
|
||||
"mute": false,
|
||||
"q": 4.36,
|
||||
"slope": "x1",
|
||||
"solo": false,
|
||||
"type": "Bell",
|
||||
"width": 4.0
|
||||
},
|
||||
"band11": {
|
||||
"frequency": 240.81,
|
||||
"gain": 0.0,
|
||||
"mode": "RLC (BT)",
|
||||
"mute": false,
|
||||
"q": 4.36,
|
||||
"slope": "x1",
|
||||
"solo": false,
|
||||
"type": "Bell",
|
||||
"width": 4.0
|
||||
},
|
||||
"band12": {
|
||||
"frequency": 298.834,
|
||||
"gain": 0.0,
|
||||
"mode": "RLC (BT)",
|
||||
"mute": false,
|
||||
"q": 4.36,
|
||||
"slope": "x1",
|
||||
"solo": false,
|
||||
"type": "Bell",
|
||||
"width": 4.0
|
||||
},
|
||||
"band13": {
|
||||
"frequency": 370.834,
|
||||
"gain": 0.0,
|
||||
"mode": "RLC (BT)",
|
||||
"mute": false,
|
||||
"q": 4.36,
|
||||
"slope": "x1",
|
||||
"solo": false,
|
||||
"type": "Bell",
|
||||
"width": 4.0
|
||||
},
|
||||
"band14": {
|
||||
"frequency": 460.182,
|
||||
"gain": 0.0,
|
||||
"mode": "RLC (BT)",
|
||||
"mute": false,
|
||||
"q": 4.36,
|
||||
"slope": "x1",
|
||||
"solo": false,
|
||||
"type": "Bell",
|
||||
"width": 4.0
|
||||
},
|
||||
"band15": {
|
||||
"frequency": 571.057,
|
||||
"gain": 0.0,
|
||||
"mode": "RLC (BT)",
|
||||
"mute": false,
|
||||
"q": 4.36,
|
||||
"slope": "x1",
|
||||
"solo": false,
|
||||
"type": "Bell",
|
||||
"width": 4.0
|
||||
},
|
||||
"band16": {
|
||||
"frequency": 708.647,
|
||||
"gain": 0.0,
|
||||
"mode": "RLC (BT)",
|
||||
"mute": false,
|
||||
"q": 4.36,
|
||||
"slope": "x1",
|
||||
"solo": false,
|
||||
"type": "Bell",
|
||||
"width": 4.0
|
||||
},
|
||||
"band17": {
|
||||
"frequency": 879.387,
|
||||
"gain": 0.0,
|
||||
"mode": "RLC (BT)",
|
||||
"mute": false,
|
||||
"q": 4.36,
|
||||
"slope": "x1",
|
||||
"solo": false,
|
||||
"type": "Bell",
|
||||
"width": 4.0
|
||||
},
|
||||
"band18": {
|
||||
"frequency": 1091.26,
|
||||
"gain": 0.0,
|
||||
"mode": "RLC (BT)",
|
||||
"mute": false,
|
||||
"q": 4.36,
|
||||
"slope": "x1",
|
||||
"solo": false,
|
||||
"type": "Bell",
|
||||
"width": 4.0
|
||||
},
|
||||
"band19": {
|
||||
"frequency": 1354.19,
|
||||
"gain": 0.0,
|
||||
"mode": "RLC (BT)",
|
||||
"mute": false,
|
||||
"q": 4.36,
|
||||
"slope": "x1",
|
||||
"solo": false,
|
||||
"type": "Bell",
|
||||
"width": 4.0
|
||||
},
|
||||
"band2": {
|
||||
"frequency": 34.51,
|
||||
"gain": 0.0,
|
||||
"mode": "RLC (BT)",
|
||||
"mute": false,
|
||||
"q": 4.36,
|
||||
"slope": "x1",
|
||||
"solo": false,
|
||||
"type": "Bell",
|
||||
"width": 4.0
|
||||
},
|
||||
"band20": {
|
||||
"frequency": 1680.47,
|
||||
"gain": 0.0,
|
||||
"mode": "RLC (BT)",
|
||||
"mute": false,
|
||||
"q": 4.36,
|
||||
"slope": "x1",
|
||||
"solo": false,
|
||||
"type": "Bell",
|
||||
"width": 4.0
|
||||
},
|
||||
"band21": {
|
||||
"frequency": 2085.35,
|
||||
"gain": 0.0,
|
||||
"mode": "RLC (BT)",
|
||||
"mute": false,
|
||||
"q": 4.36,
|
||||
"slope": "x1",
|
||||
"solo": false,
|
||||
"type": "Bell",
|
||||
"width": 4.0
|
||||
},
|
||||
"band22": {
|
||||
"frequency": 2587.79,
|
||||
"gain": 0.0,
|
||||
"mode": "RLC (BT)",
|
||||
"mute": false,
|
||||
"q": 4.36,
|
||||
"slope": "x1",
|
||||
"solo": false,
|
||||
"type": "Bell",
|
||||
"width": 4.0
|
||||
},
|
||||
"band23": {
|
||||
"frequency": 3211.29,
|
||||
"gain": 0.0,
|
||||
"mode": "RLC (BT)",
|
||||
"mute": false,
|
||||
"q": 4.36,
|
||||
"slope": "x1",
|
||||
"solo": false,
|
||||
"type": "Bell",
|
||||
"width": 4.0
|
||||
},
|
||||
"band24": {
|
||||
"frequency": 3985.01,
|
||||
"gain": 0.0,
|
||||
"mode": "RLC (BT)",
|
||||
"mute": false,
|
||||
"q": 4.36,
|
||||
"slope": "x1",
|
||||
"solo": false,
|
||||
"type": "Bell",
|
||||
"width": 4.0
|
||||
},
|
||||
"band25": {
|
||||
"frequency": 4945.15,
|
||||
"gain": 0.0,
|
||||
"mode": "RLC (BT)",
|
||||
"mute": false,
|
||||
"q": 4.36,
|
||||
"slope": "x1",
|
||||
"solo": false,
|
||||
"type": "Bell",
|
||||
"width": 4.0
|
||||
},
|
||||
"band26": {
|
||||
"frequency": 6136.63,
|
||||
"gain": 0.0,
|
||||
"mode": "RLC (BT)",
|
||||
"mute": false,
|
||||
"q": 4.36,
|
||||
"slope": "x1",
|
||||
"solo": false,
|
||||
"type": "Bell",
|
||||
"width": 4.0
|
||||
},
|
||||
"band27": {
|
||||
"frequency": 7615.17,
|
||||
"gain": 0.0,
|
||||
"mode": "RLC (BT)",
|
||||
"mute": false,
|
||||
"q": 4.36,
|
||||
"slope": "x1",
|
||||
"solo": false,
|
||||
"type": "Bell",
|
||||
"width": 4.0
|
||||
},
|
||||
"band28": {
|
||||
"frequency": 9449.96,
|
||||
"gain": 0.05000000000000426,
|
||||
"mode": "RLC (BT)",
|
||||
"mute": false,
|
||||
"q": 4.36,
|
||||
"slope": "x1",
|
||||
"solo": false,
|
||||
"type": "Bell",
|
||||
"width": 4.0
|
||||
},
|
||||
"band29": {
|
||||
"frequency": 11726.8,
|
||||
"gain": -0.5300000000000011,
|
||||
"mode": "RLC (BT)",
|
||||
"mute": false,
|
||||
"q": 4.36,
|
||||
"slope": "x1",
|
||||
"solo": false,
|
||||
"type": "Bell",
|
||||
"width": 4.0
|
||||
},
|
||||
"band3": {
|
||||
"frequency": 42.82,
|
||||
"gain": 0.0,
|
||||
"mode": "RLC (BT)",
|
||||
"mute": false,
|
||||
"q": 4.36,
|
||||
"slope": "x1",
|
||||
"solo": false,
|
||||
"type": "Bell",
|
||||
"width": 4.0
|
||||
},
|
||||
"band30": {
|
||||
"frequency": 14552.2,
|
||||
"gain": -22.29,
|
||||
"mode": "RLC (BT)",
|
||||
"mute": false,
|
||||
"q": 4.36,
|
||||
"slope": "x1",
|
||||
"solo": false,
|
||||
"type": "Bell",
|
||||
"width": 4.0
|
||||
},
|
||||
"band31": {
|
||||
"frequency": 18058.4,
|
||||
"gain": -36.0,
|
||||
"mode": "RLC (BT)",
|
||||
"mute": false,
|
||||
"q": 4.36,
|
||||
"slope": "x1",
|
||||
"solo": false,
|
||||
"type": "Bell",
|
||||
"width": 4.0
|
||||
},
|
||||
"band4": {
|
||||
"frequency": 53.14,
|
||||
"gain": 0.0,
|
||||
"mode": "RLC (BT)",
|
||||
"mute": false,
|
||||
"q": 4.36,
|
||||
"slope": "x1",
|
||||
"solo": false,
|
||||
"type": "Bell",
|
||||
"width": 4.0
|
||||
},
|
||||
"band5": {
|
||||
"frequency": 65.95,
|
||||
"gain": 0.0,
|
||||
"mode": "RLC (BT)",
|
||||
"mute": false,
|
||||
"q": 4.36,
|
||||
"slope": "x1",
|
||||
"solo": false,
|
||||
"type": "Bell",
|
||||
"width": 4.0
|
||||
},
|
||||
"band6": {
|
||||
"frequency": 81.83,
|
||||
"gain": 0.0,
|
||||
"mode": "RLC (BT)",
|
||||
"mute": false,
|
||||
"q": 4.36,
|
||||
"slope": "x1",
|
||||
"solo": false,
|
||||
"type": "Bell",
|
||||
"width": 4.0
|
||||
},
|
||||
"band7": {
|
||||
"frequency": 101.55,
|
||||
"gain": 0.0,
|
||||
"mode": "RLC (BT)",
|
||||
"mute": false,
|
||||
"q": 4.36,
|
||||
"slope": "x1",
|
||||
"solo": false,
|
||||
"type": "Bell",
|
||||
"width": 4.0
|
||||
},
|
||||
"band8": {
|
||||
"frequency": 126.0,
|
||||
"gain": 0.0,
|
||||
"mode": "RLC (BT)",
|
||||
"mute": false,
|
||||
"q": 4.36,
|
||||
"slope": "x1",
|
||||
"solo": false,
|
||||
"type": "Bell",
|
||||
"width": 4.0
|
||||
},
|
||||
"band9": {
|
||||
"frequency": 156.38,
|
||||
"gain": 0.0,
|
||||
"mode": "RLC (BT)",
|
||||
"mute": false,
|
||||
"q": 4.36,
|
||||
"slope": "x1",
|
||||
"solo": false,
|
||||
"type": "Bell",
|
||||
"width": 4.0
|
||||
}
|
||||
},
|
||||
"mode": "IIR",
|
||||
"num-bands": 32,
|
||||
"output-gain": 0.0,
|
||||
"pitch-left": 0.0,
|
||||
"pitch-right": 0.0,
|
||||
"right": {
|
||||
"band0": {
|
||||
"frequency": 22.4,
|
||||
"gain": 0.0,
|
||||
"mode": "RLC (BT)",
|
||||
"mute": false,
|
||||
"q": 4.36,
|
||||
"slope": "x1",
|
||||
"solo": false,
|
||||
"type": "Bell",
|
||||
"width": 4.0
|
||||
},
|
||||
"band1": {
|
||||
"frequency": 27.8,
|
||||
"gain": 0.0,
|
||||
"mode": "RLC (BT)",
|
||||
"mute": false,
|
||||
"q": 4.36,
|
||||
"slope": "x1",
|
||||
"solo": false,
|
||||
"type": "Bell",
|
||||
"width": 4.0
|
||||
},
|
||||
"band10": {
|
||||
"frequency": 194.06,
|
||||
"gain": 0.0,
|
||||
"mode": "RLC (BT)",
|
||||
"mute": false,
|
||||
"q": 4.36,
|
||||
"slope": "x1",
|
||||
"solo": false,
|
||||
"type": "Bell",
|
||||
"width": 4.0
|
||||
},
|
||||
"band11": {
|
||||
"frequency": 240.81,
|
||||
"gain": 0.0,
|
||||
"mode": "RLC (BT)",
|
||||
"mute": false,
|
||||
"q": 4.36,
|
||||
"slope": "x1",
|
||||
"solo": false,
|
||||
"type": "Bell",
|
||||
"width": 4.0
|
||||
},
|
||||
"band12": {
|
||||
"frequency": 298.834,
|
||||
"gain": 0.0,
|
||||
"mode": "RLC (BT)",
|
||||
"mute": false,
|
||||
"q": 4.36,
|
||||
"slope": "x1",
|
||||
"solo": false,
|
||||
"type": "Bell",
|
||||
"width": 4.0
|
||||
},
|
||||
"band13": {
|
||||
"frequency": 370.834,
|
||||
"gain": 0.0,
|
||||
"mode": "RLC (BT)",
|
||||
"mute": false,
|
||||
"q": 4.36,
|
||||
"slope": "x1",
|
||||
"solo": false,
|
||||
"type": "Bell",
|
||||
"width": 4.0
|
||||
},
|
||||
"band14": {
|
||||
"frequency": 460.182,
|
||||
"gain": 0.0,
|
||||
"mode": "RLC (BT)",
|
||||
"mute": false,
|
||||
"q": 4.36,
|
||||
"slope": "x1",
|
||||
"solo": false,
|
||||
"type": "Bell",
|
||||
"width": 4.0
|
||||
},
|
||||
"band15": {
|
||||
"frequency": 571.057,
|
||||
"gain": 0.0,
|
||||
"mode": "RLC (BT)",
|
||||
"mute": false,
|
||||
"q": 4.36,
|
||||
"slope": "x1",
|
||||
"solo": false,
|
||||
"type": "Bell",
|
||||
"width": 4.0
|
||||
},
|
||||
"band16": {
|
||||
"frequency": 708.647,
|
||||
"gain": 0.0,
|
||||
"mode": "RLC (BT)",
|
||||
"mute": false,
|
||||
"q": 4.36,
|
||||
"slope": "x1",
|
||||
"solo": false,
|
||||
"type": "Bell",
|
||||
"width": 4.0
|
||||
},
|
||||
"band17": {
|
||||
"frequency": 879.387,
|
||||
"gain": 0.0,
|
||||
"mode": "RLC (BT)",
|
||||
"mute": false,
|
||||
"q": 4.36,
|
||||
"slope": "x1",
|
||||
"solo": false,
|
||||
"type": "Bell",
|
||||
"width": 4.0
|
||||
},
|
||||
"band18": {
|
||||
"frequency": 1091.26,
|
||||
"gain": 0.0,
|
||||
"mode": "RLC (BT)",
|
||||
"mute": false,
|
||||
"q": 4.36,
|
||||
"slope": "x1",
|
||||
"solo": false,
|
||||
"type": "Bell",
|
||||
"width": 4.0
|
||||
},
|
||||
"band19": {
|
||||
"frequency": 1354.19,
|
||||
"gain": 0.0,
|
||||
"mode": "RLC (BT)",
|
||||
"mute": false,
|
||||
"q": 4.36,
|
||||
"slope": "x1",
|
||||
"solo": false,
|
||||
"type": "Bell",
|
||||
"width": 4.0
|
||||
},
|
||||
"band2": {
|
||||
"frequency": 34.51,
|
||||
"gain": 0.0,
|
||||
"mode": "RLC (BT)",
|
||||
"mute": false,
|
||||
"q": 4.36,
|
||||
"slope": "x1",
|
||||
"solo": false,
|
||||
"type": "Bell",
|
||||
"width": 4.0
|
||||
},
|
||||
"band20": {
|
||||
"frequency": 1680.47,
|
||||
"gain": 0.0,
|
||||
"mode": "RLC (BT)",
|
||||
"mute": false,
|
||||
"q": 4.36,
|
||||
"slope": "x1",
|
||||
"solo": false,
|
||||
"type": "Bell",
|
||||
"width": 4.0
|
||||
},
|
||||
"band21": {
|
||||
"frequency": 2085.35,
|
||||
"gain": 0.0,
|
||||
"mode": "RLC (BT)",
|
||||
"mute": false,
|
||||
"q": 4.36,
|
||||
"slope": "x1",
|
||||
"solo": false,
|
||||
"type": "Bell",
|
||||
"width": 4.0
|
||||
},
|
||||
"band22": {
|
||||
"frequency": 2587.79,
|
||||
"gain": 0.0,
|
||||
"mode": "RLC (BT)",
|
||||
"mute": false,
|
||||
"q": 4.36,
|
||||
"slope": "x1",
|
||||
"solo": false,
|
||||
"type": "Bell",
|
||||
"width": 4.0
|
||||
},
|
||||
"band23": {
|
||||
"frequency": 3211.29,
|
||||
"gain": 0.0,
|
||||
"mode": "RLC (BT)",
|
||||
"mute": false,
|
||||
"q": 4.36,
|
||||
"slope": "x1",
|
||||
"solo": false,
|
||||
"type": "Bell",
|
||||
"width": 4.0
|
||||
},
|
||||
"band24": {
|
||||
"frequency": 3985.01,
|
||||
"gain": 0.0,
|
||||
"mode": "RLC (BT)",
|
||||
"mute": false,
|
||||
"q": 4.36,
|
||||
"slope": "x1",
|
||||
"solo": false,
|
||||
"type": "Bell",
|
||||
"width": 4.0
|
||||
},
|
||||
"band25": {
|
||||
"frequency": 4945.15,
|
||||
"gain": 0.0,
|
||||
"mode": "RLC (BT)",
|
||||
"mute": false,
|
||||
"q": 4.36,
|
||||
"slope": "x1",
|
||||
"solo": false,
|
||||
"type": "Bell",
|
||||
"width": 4.0
|
||||
},
|
||||
"band26": {
|
||||
"frequency": 6136.63,
|
||||
"gain": 0.0,
|
||||
"mode": "RLC (BT)",
|
||||
"mute": false,
|
||||
"q": 4.36,
|
||||
"slope": "x1",
|
||||
"solo": false,
|
||||
"type": "Bell",
|
||||
"width": 4.0
|
||||
},
|
||||
"band27": {
|
||||
"frequency": 7615.17,
|
||||
"gain": 0.0,
|
||||
"mode": "RLC (BT)",
|
||||
"mute": false,
|
||||
"q": 4.36,
|
||||
"slope": "x1",
|
||||
"solo": false,
|
||||
"type": "Bell",
|
||||
"width": 4.0
|
||||
},
|
||||
"band28": {
|
||||
"frequency": 9449.96,
|
||||
"gain": 0.05000000000000426,
|
||||
"mode": "RLC (BT)",
|
||||
"mute": false,
|
||||
"q": 4.36,
|
||||
"slope": "x1",
|
||||
"solo": false,
|
||||
"type": "Bell",
|
||||
"width": 4.0
|
||||
},
|
||||
"band29": {
|
||||
"frequency": 11726.8,
|
||||
"gain": -0.5300000000000011,
|
||||
"mode": "RLC (BT)",
|
||||
"mute": false,
|
||||
"q": 4.36,
|
||||
"slope": "x1",
|
||||
"solo": false,
|
||||
"type": "Bell",
|
||||
"width": 4.0
|
||||
},
|
||||
"band3": {
|
||||
"frequency": 42.82,
|
||||
"gain": 0.0,
|
||||
"mode": "RLC (BT)",
|
||||
"mute": false,
|
||||
"q": 4.36,
|
||||
"slope": "x1",
|
||||
"solo": false,
|
||||
"type": "Bell",
|
||||
"width": 4.0
|
||||
},
|
||||
"band30": {
|
||||
"frequency": 14552.2,
|
||||
"gain": -22.29,
|
||||
"mode": "RLC (BT)",
|
||||
"mute": false,
|
||||
"q": 4.36,
|
||||
"slope": "x1",
|
||||
"solo": false,
|
||||
"type": "Bell",
|
||||
"width": 4.0
|
||||
},
|
||||
"band31": {
|
||||
"frequency": 18058.4,
|
||||
"gain": -36.0,
|
||||
"mode": "RLC (BT)",
|
||||
"mute": false,
|
||||
"q": 4.36,
|
||||
"slope": "x1",
|
||||
"solo": false,
|
||||
"type": "Bell",
|
||||
"width": 4.0
|
||||
},
|
||||
"band4": {
|
||||
"frequency": 53.14,
|
||||
"gain": 0.0,
|
||||
"mode": "RLC (BT)",
|
||||
"mute": false,
|
||||
"q": 4.36,
|
||||
"slope": "x1",
|
||||
"solo": false,
|
||||
"type": "Bell",
|
||||
"width": 4.0
|
||||
},
|
||||
"band5": {
|
||||
"frequency": 65.95,
|
||||
"gain": 0.0,
|
||||
"mode": "RLC (BT)",
|
||||
"mute": false,
|
||||
"q": 4.36,
|
||||
"slope": "x1",
|
||||
"solo": false,
|
||||
"type": "Bell",
|
||||
"width": 4.0
|
||||
},
|
||||
"band6": {
|
||||
"frequency": 81.83,
|
||||
"gain": 0.0,
|
||||
"mode": "RLC (BT)",
|
||||
"mute": false,
|
||||
"q": 4.36,
|
||||
"slope": "x1",
|
||||
"solo": false,
|
||||
"type": "Bell",
|
||||
"width": 4.0
|
||||
},
|
||||
"band7": {
|
||||
"frequency": 101.55,
|
||||
"gain": 0.0,
|
||||
"mode": "RLC (BT)",
|
||||
"mute": false,
|
||||
"q": 4.36,
|
||||
"slope": "x1",
|
||||
"solo": false,
|
||||
"type": "Bell",
|
||||
"width": 4.0
|
||||
},
|
||||
"band8": {
|
||||
"frequency": 126.0,
|
||||
"gain": 0.0,
|
||||
"mode": "RLC (BT)",
|
||||
"mute": false,
|
||||
"q": 4.36,
|
||||
"slope": "x1",
|
||||
"solo": false,
|
||||
"type": "Bell",
|
||||
"width": 4.0
|
||||
},
|
||||
"band9": {
|
||||
"frequency": 156.38,
|
||||
"gain": 0.0,
|
||||
"mode": "RLC (BT)",
|
||||
"mute": false,
|
||||
"q": 4.36,
|
||||
"slope": "x1",
|
||||
"solo": false,
|
||||
"type": "Bell",
|
||||
"width": 4.0
|
||||
}
|
||||
},
|
||||
"split-channels": false
|
||||
},
|
||||
"gate#0": {
|
||||
"attack": 5.0,
|
||||
"bypass": false,
|
||||
"curve-threshold": -30.0,
|
||||
"curve-zone": -6.0,
|
||||
"dry": -80.01,
|
||||
"hpf-frequency": 10.0,
|
||||
"hpf-mode": "Off",
|
||||
"hysteresis": false,
|
||||
"hysteresis-threshold": -12.0,
|
||||
"hysteresis-zone": -6.0,
|
||||
"input-gain": 0.0,
|
||||
"input-to-link": 0.0,
|
||||
"input-to-sidechain": 0.0,
|
||||
"link-to-input": 0.0,
|
||||
"link-to-sidechain": 0.0,
|
||||
"lpf-frequency": 20000.0,
|
||||
"lpf-mode": "Off",
|
||||
"makeup": 0.0,
|
||||
"output-gain": 0.0,
|
||||
"reduction": -24.0,
|
||||
"release": 250.0,
|
||||
"sidechain": {
|
||||
"lookahead": 0.0,
|
||||
"mode": "Peak",
|
||||
"preamp": 0.0,
|
||||
"reactivity": 10.0,
|
||||
"source": "Middle",
|
||||
"stereo-split-source": "Left/Right",
|
||||
"type": "Internal"
|
||||
},
|
||||
"sidechain-to-input": 0.0,
|
||||
"sidechain-to-link": 0.0,
|
||||
"stereo-split": false,
|
||||
"wet": 0.0
|
||||
},
|
||||
"loudness#0": {
|
||||
"bypass": false,
|
||||
"clipping": false,
|
||||
"clipping-range": 6.0,
|
||||
"fft": "4096",
|
||||
"iir-approximation": "Normal",
|
||||
"input-gain": 0.0,
|
||||
"mode": "FFT",
|
||||
"output-gain": 0.0,
|
||||
"std": "ISO226-2023",
|
||||
"volume": 7.0
|
||||
},
|
||||
"plugins_order": [
|
||||
"gate#0",
|
||||
"equalizer#0",
|
||||
"loudness#0"
|
||||
]
|
||||
}
|
||||
}
|
||||
@@ -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;
|
||||
};
|
||||
};
|
||||
@@ -78,6 +83,7 @@ in {
|
||||
fontspec
|
||||
dvisvgm dvipng wrapfig # For Org-mode previews/export.
|
||||
amsmath # Essential for mathematics.
|
||||
cancel # Cross out terms in math mode.
|
||||
spath3 # TikZ dependency?
|
||||
ulem hyperref
|
||||
capt-of
|
||||
|
||||
31
modules/home/haskell.nix
Normal file
31
modules/home/haskell.nix
Normal file
@@ -0,0 +1,31 @@
|
||||
{ config, lib, pkgs, ... }:
|
||||
|
||||
let
|
||||
cfg = config.sydnix.haskell;
|
||||
in {
|
||||
options.sydnix.haskell.enable =
|
||||
lib.mkEnableOption "Haskell";
|
||||
|
||||
config = lib.mkIf cfg.enable {
|
||||
# Convenient shorthand for quickly opening Haskell REPLs.
|
||||
programs.bash.profileExtra =
|
||||
builtins.readFile ./haskell/ghc-with-packages.sh;
|
||||
|
||||
home.file.".ghc/ghci.conf".text = ''
|
||||
:set prompt "\x1b[38;5;5mλ>\x1b[0m "
|
||||
:set prompt-cont "\x1b[38;5;5m|>\x1b[0m "
|
||||
'';
|
||||
|
||||
sydnix.impermanence.cache.directories =
|
||||
let xdg-cache-dir =
|
||||
config.home.cacheHome
|
||||
or "${config.home.homeDirectory}/.cache";
|
||||
in [
|
||||
# We don't want to rebuild Hackage simply due to a reboot, do we? }:)
|
||||
(lib.removePrefix "${config.home.homeDirectory}/"
|
||||
"${xdg-cache-dir}/cabal")
|
||||
".stack"
|
||||
];
|
||||
};
|
||||
}
|
||||
|
||||
52
modules/home/haskell/ghc-with-packages.sh
Normal file
52
modules/home/haskell/ghc-with-packages.sh
Normal file
@@ -0,0 +1,52 @@
|
||||
declare -a default_ghc_packages=(pretty-simple lens)
|
||||
|
||||
ghc-with-packages () {
|
||||
declare -a packages=()
|
||||
local GHC_COMMAND=${GHC_COMMAND:-"ghc"}
|
||||
packages+=$default_ghc_packages
|
||||
local exit=0 stop_args
|
||||
while [[ ! -z "$1" && -z "$stop_args" ]]; do
|
||||
local opt="$1"
|
||||
shift 1
|
||||
case "$opt" in
|
||||
"--")
|
||||
stop_args=1
|
||||
;;
|
||||
"-p")
|
||||
while [[ ! -z "$1" && "$1" != -* ]]; do
|
||||
packages+=("$1")
|
||||
shift 1
|
||||
done
|
||||
;;
|
||||
*|"-h")
|
||||
exit=1
|
||||
;;
|
||||
esac
|
||||
done
|
||||
|
||||
local pretty_simple
|
||||
|
||||
for p in "$packages"; do
|
||||
if [[ "$p" = "pretty-simple" ]]; then
|
||||
pretty_simple="-interactive-print=Text.Pretty.Simple.pPrint"
|
||||
fi
|
||||
done
|
||||
|
||||
if [[ "$exit" -eq 0 ]]; then
|
||||
# echo "packages: ${packages[@]}"
|
||||
# echo "args: $*"
|
||||
local pkgs="${packages[@]}"
|
||||
nix-shell \
|
||||
-p "haskellPackages.ghcWithPackages (p: with p; [ $pkgs ])" \
|
||||
--run "$GHC_COMMAND $pretty_simple $*"
|
||||
else
|
||||
echo >&2 "Usage: ghci-with-packages [-p packages…] [-- ghci-options]"
|
||||
return $exit
|
||||
fi
|
||||
}
|
||||
export -f ghc-with-packages
|
||||
|
||||
ghci-with-packages () {
|
||||
GHC_COMMAND=ghci ghc-with-packages "$@"
|
||||
}
|
||||
export -f ghci-with-packages
|
||||
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"
|
||||
];
|
||||
};
|
||||
}
|
||||
17
modules/home/ryujinx.nix
Normal file
17
modules/home/ryujinx.nix
Normal file
@@ -0,0 +1,17 @@
|
||||
{ config, lib, pkgs, ... }:
|
||||
|
||||
let cfg = config.sydnix.ryujinx;
|
||||
in {
|
||||
options.sydnix.ryujinx = {
|
||||
enable = lib.mkEnableOption "ryujinx";
|
||||
};
|
||||
|
||||
config = lib.mkIf cfg.enable {
|
||||
home.packages = [
|
||||
pkgs.ryubing-canary
|
||||
];
|
||||
sydnix.impermanence.directories = [
|
||||
".config/Ryujinx"
|
||||
];
|
||||
};
|
||||
}
|
||||
@@ -20,6 +20,7 @@ in {
|
||||
enable = true;
|
||||
addons = with pkgs.ankiAddons; [
|
||||
review-heatmap
|
||||
anki-connect
|
||||
];
|
||||
sync = {
|
||||
autoSync = true;
|
||||
|
||||
@@ -239,7 +239,7 @@ in {
|
||||
# Precedence of search engines.
|
||||
order = [ "Kagi" "ddg" ];
|
||||
default = "Kagi";
|
||||
privateDefault = "ddg";
|
||||
privateDefault = "Kagi";
|
||||
engines = {
|
||||
"Kagi" = {
|
||||
urls = [{
|
||||
@@ -273,6 +273,26 @@ in {
|
||||
"${pkgs.nixos-icons}/share/icons/hicolor/scalable/apps/nix-snowflake.svg";
|
||||
definedAliases = [ "!np" ];
|
||||
};
|
||||
"English Wiktionary" = {
|
||||
urls = [{
|
||||
template = "https://en.wiktionary.org/wiki/Special:Search";
|
||||
params = [
|
||||
{ name = "go"; value = "Define"; }
|
||||
{ name = "search"; value = "{searchTerms}"; }
|
||||
];
|
||||
}];
|
||||
definedAliases = [ "!wikt" "!enwikt" "!쟈사" "!wiktionary" ];
|
||||
};
|
||||
"위키낱말사전" = {
|
||||
urls = [{
|
||||
template = "https://ko.wiktionary.org/wiki/특수:검색";
|
||||
params = [
|
||||
{ name = "go"; value = "Define"; }
|
||||
{ name = "search"; value = "{searchTerms}"; }
|
||||
];
|
||||
}];
|
||||
definedAliases = [ "!kowikt" "!위사" ];
|
||||
};
|
||||
};
|
||||
};
|
||||
|
||||
|
||||
@@ -1,67 +0,0 @@
|
||||
{ config, lib, pkgs, ... }:
|
||||
|
||||
let
|
||||
cfg = config.sydnix.users.crumb.haskell;
|
||||
in {
|
||||
options.sydnix.users.crumb.haskell.enable =
|
||||
lib.mkEnableOption "Haskell, à la crumb";
|
||||
|
||||
config = lib.mkIf cfg.enable {
|
||||
# Convenient shorthand for quickly opening Haskell REPLs.
|
||||
programs.bash.profileExtra = ''
|
||||
# Start a GHCi REPL with the given packages made available.
|
||||
ghci-with-packages () {
|
||||
packages=""
|
||||
while getopts 'p:h' opt; do
|
||||
case "$opt" in
|
||||
p)
|
||||
packages="''${OPTARG}"
|
||||
;;
|
||||
?|h)
|
||||
echo >&2 "Usage: $(basename $0) [-p packages] [-- ghci-options]"
|
||||
exit 1
|
||||
;;
|
||||
esac
|
||||
done
|
||||
shift "$(($OPTIND -1))"
|
||||
|
||||
nix-shell -p "haskellPackages.ghcWithPackages (p: with p; [ $packages ])" \
|
||||
--run "ghci $@"
|
||||
}
|
||||
export -f ghci-with-packages
|
||||
|
||||
# Run GHC with the given packages made available.
|
||||
ghc-with-packages () {
|
||||
packages=""
|
||||
while getopts 'p:h' opt; do
|
||||
case "$opt" in
|
||||
p)
|
||||
packages="''${OPTARG}"
|
||||
;;
|
||||
?|h)
|
||||
echo >&2 "Usage: $(basename $0) [-p packages] [-- ghc-options]"
|
||||
exit 1
|
||||
;;
|
||||
esac
|
||||
done
|
||||
shift "$(($OPTIND -1))"
|
||||
|
||||
nix-shell -p "haskellPackages.ghcWithPackages (p: with p; [ $packages ])" \
|
||||
--run "ghc $@"
|
||||
}
|
||||
export -f ghc-with-packages
|
||||
'';
|
||||
|
||||
sydnix.impermanence.cache.directories =
|
||||
let xdg-cache-dir =
|
||||
config.home.cacheHome
|
||||
or "${config.home.homeDirectory}/.cache";
|
||||
in [
|
||||
# We don't want to rebuild Hackage simply due to a reboot, do we? }:)
|
||||
(lib.removePrefix "${config.home.homeDirectory}/"
|
||||
"${xdg-cache-dir}/cabal")
|
||||
".stack"
|
||||
];
|
||||
};
|
||||
}
|
||||
|
||||
@@ -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
|
||||
@@ -51,6 +51,10 @@ in {
|
||||
pkgs.nerd-fonts.victor-mono
|
||||
pkgs.ibm-plex
|
||||
];
|
||||
extraWrapProgramArgs = [
|
||||
"--set" "ESHELL_ALIASES_FILE"
|
||||
config.home.sessionVariables.ESHELL_ALIASES_FILE
|
||||
];
|
||||
};
|
||||
};
|
||||
}
|
||||
|
||||
@@ -31,6 +31,7 @@
|
||||
syd/which-key
|
||||
syd/tramp
|
||||
syd/handle
|
||||
syd/flycheck
|
||||
syd/org
|
||||
syd/org/roam
|
||||
syd/org/agenda
|
||||
@@ -67,4 +68,8 @@
|
||||
syd/grammatical-framework
|
||||
syd/tabs
|
||||
syd/lsp
|
||||
syd/custom))
|
||||
syd/custom
|
||||
syd/transient
|
||||
syd/bookmark
|
||||
syd/haskell
|
||||
syd/qbe))
|
||||
|
||||
@@ -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)
|
||||
@@ -21,21 +21,38 @@
|
||||
(use-package cider
|
||||
:after clojure-mode
|
||||
:config
|
||||
|
||||
(defun syd-clojure-doc (arg)
|
||||
(interactive "P")
|
||||
(cider-doc arg)
|
||||
cider-doc-buffer)
|
||||
|
||||
(defun syd-clojure-eval-region (beg end)
|
||||
(cider-eval-region beg end))
|
||||
|
||||
(syd-handle '(clojure-mode clojurescript-mode cider-repl-mode)
|
||||
:docs #'cider-doc
|
||||
:eval-region #'syd-clojure-eval-region
|
||||
:load-buffer #'cider-load-buffer)
|
||||
|
||||
(add-hook 'cider-repl-mode-hook #'syd-lisp-mode)
|
||||
|
||||
(syd-push shackle-rules
|
||||
`("*cider-doc*" ,@syd-help-popup-options)
|
||||
'("*cider-test-report*")
|
||||
'("*cider-error*")))
|
||||
`("*cider-doc*" ,@syd-help-popup-options)
|
||||
'("*cider-test-report*")
|
||||
'("*cider-error*"))
|
||||
|
||||
(defun syd-clojure-classpath-relative-file-name (file-name)
|
||||
(when (and cider-mode (cider-nrepl-eval-session))
|
||||
(let ((prefixes (-filter #'file-directory-p
|
||||
(cider-classpath-entries))))
|
||||
(cl-loop for classpath-entry in prefixes
|
||||
for prefix = (file-name-as-directory classpath-entry)
|
||||
when (string-prefix-p prefix file-name)
|
||||
return (string-remove-prefix prefix file-name)))))
|
||||
(add-to-list 'syd-insert-file-name-alist
|
||||
`(,#'syd-clojure-classpath-relative-file-name
|
||||
. "Classpath-relative")))
|
||||
|
||||
(use-package cider-mode
|
||||
:straight nil ; Part of `cider'.
|
||||
@@ -116,6 +133,9 @@
|
||||
|
||||
(use-package clj-refactor
|
||||
:config
|
||||
(add-hook 'clojure-mode-hook #'syd-clojure--setup-clj-refactor))
|
||||
(add-hook 'clojure-mode-hook #'syd-clojure--setup-clj-refactor)
|
||||
(dolist (x '(("p" . "babashka.process")
|
||||
("fs" . "babashka.fs")))
|
||||
(add-to-list 'cljr-magic-require-namespaces x)))
|
||||
|
||||
(provide 'syd/clojure)
|
||||
|
||||
@@ -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)
|
||||
|
||||
14
modules/home/users/msyds/emacs/lisp/syd/flycheck.el
Normal file
14
modules/home/users/msyds/emacs/lisp/syd/flycheck.el
Normal file
@@ -0,0 +1,14 @@
|
||||
;;; -*- lexical-binding: t -*-
|
||||
|
||||
(require 'syd/base)
|
||||
(require 'syd/popups)
|
||||
|
||||
;; Nicer error messages, integrates with `lsp-mode'
|
||||
(use-package flycheck
|
||||
:custom ((flycheck-highlighting-mode nil))
|
||||
:general
|
||||
(:states '(motion normal)
|
||||
"[ e" #'flycheck-previous-error
|
||||
"] e" #'flycheck-next-error))
|
||||
|
||||
(provide 'syd/flycheck)
|
||||
67
modules/home/users/msyds/emacs/lisp/syd/haskell.el
Normal file
67
modules/home/users/msyds/emacs/lisp/syd/haskell.el
Normal file
@@ -0,0 +1,67 @@
|
||||
;; -*- lexical-binding: t; -*-
|
||||
(require 'syd/base)
|
||||
(require 'syd/handle)
|
||||
|
||||
(defun syd-haskell-open-repl ()
|
||||
"Open a Haskell REPL."
|
||||
(interactive)
|
||||
(require 'inf-haskell)
|
||||
(run-haskell))
|
||||
|
||||
(defun syd-haskell-evil-open-above ()
|
||||
"Opens a line above the current, following Haskell-mode's indentation"
|
||||
(interactive)
|
||||
(evil-beginning-of-line)
|
||||
(haskell-indentation-newline-and-indent)
|
||||
(evil-previous-line)
|
||||
(haskell-indentation-indent-line)
|
||||
(evil-append-line nil))
|
||||
|
||||
(defun syd-haskell-evil-open-below ()
|
||||
"Opens a line below the current, following Haskell-mode's indentation"
|
||||
(interactive)
|
||||
(evil-append-line nil)
|
||||
(haskell-indentation-newline-and-indent))
|
||||
|
||||
(defun syd-haskell-hoogle-start-server ()
|
||||
(interactive)
|
||||
(haskell-hoogle-start-server)
|
||||
(browse-url-xdg-open (format "http://localhost:%d"
|
||||
haskell-hoogle-port-number))
|
||||
(message "Hoogle started on localhost:%d" haskell-hoogle-port-number))
|
||||
|
||||
(use-package haskell-mode
|
||||
:mode (("\\.l?hs'" . haskell-literate-mode)
|
||||
("\\.hs'" . haskell-mode))
|
||||
:custom (; Show errors in REPL, not popup buffers.
|
||||
(haskell-interactive-popup-errors nil)
|
||||
(haskell-process-suggest-remove-import-line t)
|
||||
(haskell-process-auto-import-loaded-modules t))
|
||||
:general
|
||||
(:keymaps 'haskell-mode-map
|
||||
:states '(normal visual motion emacs insert)
|
||||
:major-modes t
|
||||
:prefix syd-localleader-key
|
||||
:non-normal-prefix syd-alt-localleader-key
|
||||
"c" #'haskell-cabal-visit-file
|
||||
"h s" #'syd-haskell-hoogle-start-server
|
||||
"h q" #'haskell-hoogle-kill-server)
|
||||
(:keymaps 'interactive-haskell-mode-map
|
||||
:states '(normal insert)
|
||||
"C-j" #'haskell-interactive-mode-history-next
|
||||
"C-k" #'haskell-interactive-mode-history-previous)
|
||||
(:keymaps 'haskell-mode-map
|
||||
:states 'normal
|
||||
[remap evil-open-above] #'syd-haskell-evil-open-above
|
||||
[remap evil-open-below] #'syd-haskell-evil-open-below)
|
||||
:config
|
||||
(add-to-list 'completion-ignored-extensions ".hi"))
|
||||
|
||||
(use-package lsp-haskell
|
||||
:defer t
|
||||
:custom ((lsp-haskell-server-path "haskell-language-server"))
|
||||
:init
|
||||
(add-hook 'haskell-mode-hook #'lsp-deferred 'append)
|
||||
(add-hook 'haskell-literate-mode-hook #'lsp-deferred 'append))
|
||||
|
||||
(provide 'syd/haskell)
|
||||
@@ -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)
|
||||
|
||||
@@ -2,6 +2,7 @@
|
||||
|
||||
(require 'syd/base)
|
||||
(require 'syd/popups)
|
||||
(require 'syd/handle)
|
||||
|
||||
(use-package lsp-mode
|
||||
:init
|
||||
@@ -35,6 +36,12 @@
|
||||
(syd-push
|
||||
shackle-rules
|
||||
`(("*lsp-help*" "*lsp-install*")
|
||||
,@syd-help-popup-options)))
|
||||
:select nil :size 0.42 :popup t :align bottom))
|
||||
(defun syd-lsp-handle-docs ()
|
||||
(interactive)
|
||||
(lsp-describe-thing-at-point)
|
||||
(get-buffer "*lsp-help*"))
|
||||
(syd-handle 'lsp-mode
|
||||
:docs #'syd-lsp-handle-docs))
|
||||
|
||||
(provide 'syd/lsp)
|
||||
|
||||
@@ -193,4 +193,74 @@ 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 (descs)
|
||||
(when descs
|
||||
(let ((s (string-join descs ", ")))
|
||||
(concat
|
||||
" "
|
||||
(propertize " " 'display `(space :align-to (- right ,(+ 1 (length s)))))
|
||||
s))))
|
||||
|
||||
(defun syd-project-relative-file-name (file-name)
|
||||
(file-relative-name file-name (project-root (project-current))))
|
||||
|
||||
(defvar syd-insert-file-name-alist
|
||||
`((,#'syd-project-relative-file-name . "Project-relative")
|
||||
(,#'file-relative-name . "File-relative")
|
||||
(,#'identity . "Absolute"))
|
||||
"List of pairs where each cons is a function mapping paths to paths
|
||||
or nil, and each cons is a string description.")
|
||||
|
||||
(defun syd--evaluate-syd-insert-file-name-alist (path)
|
||||
(cl-loop for (fn . lbl) in syd-insert-file-name-alist
|
||||
for r = (funcall fn path)
|
||||
when r
|
||||
collect (cons r lbl)))
|
||||
|
||||
(defun syd-insert-file-name ()
|
||||
(interactive)
|
||||
(let* ((path (expand-file-name
|
||||
(read-file-name "Path: " nil nil 'confirm)))
|
||||
(choose-a-dir "... (choose a dir)")
|
||||
(alts (cons `(,choose-a-dir)
|
||||
(syd--evaluate-syd-insert-file-name-alist path)))
|
||||
(choice
|
||||
(completing-read
|
||||
"Variant: "
|
||||
(lambda (s p flag)
|
||||
(pcase flag
|
||||
('metadata
|
||||
`(metadata
|
||||
(annotation-function
|
||||
. ,(lambda (s)
|
||||
(let ((descs
|
||||
(cl-loop for (p . lbl) in alts
|
||||
when (equal p s)
|
||||
collect lbl)))
|
||||
(syd--insert-file-name-annotation
|
||||
descs))))))
|
||||
(_ (all-completions s (mapcar #'car alts) p)))))))
|
||||
(if (equal choice choose-a-dir)
|
||||
(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)
|
||||
|
||||
|
||||
12
modules/home/users/msyds/emacs/lisp/syd/qbe.el
Normal file
12
modules/home/users/msyds/emacs/lisp/syd/qbe.el
Normal file
@@ -0,0 +1,12 @@
|
||||
;; -*- lexical-binding: t; -*-
|
||||
(require 'syd/base)
|
||||
|
||||
(use-package qbe-mode
|
||||
:mode "\\.qbe\\'"
|
||||
:straight (:type git
|
||||
:host github
|
||||
:repo "mbknust/qbe-mode")
|
||||
:config
|
||||
(add-hook 'qbe-mode-hook #'indent-tabs-mode))
|
||||
|
||||
(provide 'syd/qbe)
|
||||
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"
|
||||
];
|
||||
};
|
||||
}
|
||||
@@ -22,11 +22,13 @@ in {
|
||||
"https://nix-community.cachix.org"
|
||||
"https://cache.nixos.org"
|
||||
"https://cache.iog.io"
|
||||
"https://cache.zw3rk.com"
|
||||
];
|
||||
trusted-public-keys = [
|
||||
(builtins.readFile ../../public-keys/deertopia-cache.pub.pem)
|
||||
"nix-community.cachix.org-1:mB9FSh9qf2dCimDSUo8Zy7bkq5CX+/rkCWyvRCYg3Fs="
|
||||
"hydra.iohk.io:f/Ea+s+dFdN+3Y/G+FDgSq+a5NEWhJGzdjvKNGv0/EQ="
|
||||
"loony-tools:pr9m4BkM/5/eSTZlkQyRt57Jz7OMBxNSUiMC4FkcNfk="
|
||||
];
|
||||
};
|
||||
};
|
||||
|
||||
@@ -46,6 +46,12 @@
|
||||
kdeconnect.enable = true;
|
||||
qalculate.enable = true;
|
||||
toki-pona.enable = true;
|
||||
prism-launcher.enable = on "sydpc";
|
||||
flatpak.enable = on "sydpc";
|
||||
drawing-tablet.enable = on "sydpc";
|
||||
easyeffects.enable = on "sydpc";
|
||||
ryujinx.enable = on "sydpc";
|
||||
haskell.enable = true;
|
||||
sops = {
|
||||
enable = true;
|
||||
keyFile = "/persist/private-keys/age/crumb";
|
||||
@@ -64,6 +70,7 @@
|
||||
fcitx5.enable = true;
|
||||
anki.enable = true;
|
||||
mumble.enable = true;
|
||||
rnote.enable = on "sydpc";
|
||||
};
|
||||
users.msyds = {
|
||||
discord.enable = true;
|
||||
@@ -74,7 +81,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