Compare commits
1 Commits
main
...
cc7923c1da
| Author | SHA1 | Date | |
|---|---|---|---|
| cc7923c1da |
54
flake.lock
generated
54
flake.lock
generated
@@ -161,11 +161,11 @@
|
|||||||
"nixpkgs-lib": "nixpkgs-lib"
|
"nixpkgs-lib": "nixpkgs-lib"
|
||||||
},
|
},
|
||||||
"locked": {
|
"locked": {
|
||||||
"lastModified": 1775087534,
|
"lastModified": 1772408722,
|
||||||
"narHash": "sha256-91qqW8lhL7TLwgQWijoGBbiD4t7/q75KTi8NxjVmSmA=",
|
"narHash": "sha256-rHuJtdcOjK7rAHpHphUb1iCvgkU3GpfvicLMwwnfMT0=",
|
||||||
"owner": "hercules-ci",
|
"owner": "hercules-ci",
|
||||||
"repo": "flake-parts",
|
"repo": "flake-parts",
|
||||||
"rev": "3107b77cd68437b9a76194f0f7f9c55f2329ca5b",
|
"rev": "f20dc5d9b8027381c474144ecabc9034d6a839a3",
|
||||||
"type": "github"
|
"type": "github"
|
||||||
},
|
},
|
||||||
"original": {
|
"original": {
|
||||||
@@ -420,15 +420,14 @@
|
|||||||
"inputs": {
|
"inputs": {
|
||||||
"flake-compat": "flake-compat",
|
"flake-compat": "flake-compat",
|
||||||
"flake-parts": "flake-parts",
|
"flake-parts": "flake-parts",
|
||||||
"nixpkgs": "nixpkgs_5",
|
"nixpkgs": "nixpkgs_5"
|
||||||
"nixpkgs-nixcord": "nixpkgs-nixcord"
|
|
||||||
},
|
},
|
||||||
"locked": {
|
"locked": {
|
||||||
"lastModified": 1777125640,
|
"lastModified": 1772813986,
|
||||||
"narHash": "sha256-jKmRu5PknoI0pk3WEqMhVReosUubUCq3M/izEQWzb+4=",
|
"narHash": "sha256-x0fD+LL+O99p36c2UnjnHvVq4/7TvGH/8G5lTNIJBCo=",
|
||||||
"owner": "KaylorBen",
|
"owner": "KaylorBen",
|
||||||
"repo": "nixcord",
|
"repo": "nixcord",
|
||||||
"rev": "0e738683dd7551a9cbfa343397b1592dfd785b7e",
|
"rev": "e433a2919eb9b3a8c85ab3017c08685816e63a66",
|
||||||
"type": "github"
|
"type": "github"
|
||||||
},
|
},
|
||||||
"original": {
|
"original": {
|
||||||
@@ -470,11 +469,11 @@
|
|||||||
},
|
},
|
||||||
"nixpkgs-lib": {
|
"nixpkgs-lib": {
|
||||||
"locked": {
|
"locked": {
|
||||||
"lastModified": 1774748309,
|
"lastModified": 1772328832,
|
||||||
"narHash": "sha256-+U7gF3qxzwD5TZuANzZPeJTZRHS29OFQgkQ2kiTJBIQ=",
|
"narHash": "sha256-e+/T/pmEkLP6BHhYjx6GmwP5ivonQQn0bJdH9YrRB+Q=",
|
||||||
"owner": "nix-community",
|
"owner": "nix-community",
|
||||||
"repo": "nixpkgs.lib",
|
"repo": "nixpkgs.lib",
|
||||||
"rev": "333c4e0545a6da976206c74db8773a1645b5870a",
|
"rev": "c185c7a5e5dd8f9add5b2f8ebeff00888b070742",
|
||||||
"type": "github"
|
"type": "github"
|
||||||
},
|
},
|
||||||
"original": {
|
"original": {
|
||||||
@@ -483,22 +482,6 @@
|
|||||||
"type": "github"
|
"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": {
|
"nixpkgs-stable": {
|
||||||
"locked": {
|
"locked": {
|
||||||
"lastModified": 1742751704,
|
"lastModified": 1742751704,
|
||||||
@@ -597,11 +580,11 @@
|
|||||||
},
|
},
|
||||||
"nixpkgs_5": {
|
"nixpkgs_5": {
|
||||||
"locked": {
|
"locked": {
|
||||||
"lastModified": 1776734388,
|
"lastModified": 1772465433,
|
||||||
"narHash": "sha256-vl3dkhlE5gzsItuHoEMVe+DlonsK+0836LIRDnm6MXQ=",
|
"narHash": "sha256-ywy9troNEfpgh0Ee+zaV1UTgU8kYBVKtvPSxh6clYGU=",
|
||||||
"owner": "NixOS",
|
"owner": "NixOS",
|
||||||
"repo": "nixpkgs",
|
"repo": "nixpkgs",
|
||||||
"rev": "10e7ad5bbcb421fe07e3a4ad53a634b0cd57ffac",
|
"rev": "c581273b8d5bdf1c6ce7e0a54da9841e6a763913",
|
||||||
"type": "github"
|
"type": "github"
|
||||||
},
|
},
|
||||||
"original": {
|
"original": {
|
||||||
@@ -819,15 +802,16 @@
|
|||||||
]
|
]
|
||||||
},
|
},
|
||||||
"locked": {
|
"locked": {
|
||||||
"lastModified": 1776985528,
|
"lastModified": 1773275674,
|
||||||
"narHash": "sha256-32WDZGOJBjq3Jr4DRtumqXoX5t25/T0cQ7CzAqT1OnE=",
|
"narHash": "sha256-kULSjFWDoDatz31aIses5q51ESUi0ASUc3MKmBYLnRY=",
|
||||||
"ref": "refs/heads/main",
|
"ref": "fcitx5-toki-pona",
|
||||||
"rev": "40de55454366e390e6972f5e9a9b1444df49ed18",
|
"rev": "03f6a67a0a3b3c00ff4566147eddb0123cfe3d14",
|
||||||
"revCount": 40,
|
"revCount": 38,
|
||||||
"type": "git",
|
"type": "git",
|
||||||
"url": "https://git.deertopia.net/msyds/sydpkgs"
|
"url": "https://git.deertopia.net/msyds/sydpkgs"
|
||||||
},
|
},
|
||||||
"original": {
|
"original": {
|
||||||
|
"ref": "fcitx5-toki-pona",
|
||||||
"type": "git",
|
"type": "git",
|
||||||
"url": "https://git.deertopia.net/msyds/sydpkgs"
|
"url": "https://git.deertopia.net/msyds/sydpkgs"
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -33,7 +33,7 @@
|
|||||||
syd-fcitx5-tables.url =
|
syd-fcitx5-tables.url =
|
||||||
"git+https://git.deertopia.net/msyds/syd-fcitx5-tables";
|
"git+https://git.deertopia.net/msyds/syd-fcitx5-tables";
|
||||||
sydpkgs = {
|
sydpkgs = {
|
||||||
url = "git+https://git.deertopia.net/msyds/sydpkgs";
|
url = "git+https://git.deertopia.net/msyds/sydpkgs?ref=fcitx5-toki-pona";
|
||||||
inputs.nixpkgs.follows = "nixpkgs";
|
inputs.nixpkgs.follows = "nixpkgs";
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
|
|||||||
@@ -10,8 +10,6 @@
|
|||||||
v4l2loopback
|
v4l2loopback
|
||||||
];
|
];
|
||||||
|
|
||||||
programs.dconf.enable = true;
|
|
||||||
|
|
||||||
sydnix = {
|
sydnix = {
|
||||||
filesystemType = "btrfs";
|
filesystemType = "btrfs";
|
||||||
wifi.enable = true;
|
wifi.enable = true;
|
||||||
@@ -21,9 +19,8 @@
|
|||||||
slippi.enable = true;
|
slippi.enable = true;
|
||||||
niri.enable = true;
|
niri.enable = true;
|
||||||
stylix.enable = true;
|
stylix.enable = true;
|
||||||
# qemu.enable = true;
|
qemu.enable = true;
|
||||||
flatpak.enable = true;
|
flatpak.enable = true;
|
||||||
gtav-battleye-hack.enable = true;
|
|
||||||
# gdm.enable = true;
|
# gdm.enable = true;
|
||||||
openssh.enable = true;
|
openssh.enable = true;
|
||||||
sydpkgs.overlay.enable = true;
|
sydpkgs.overlay.enable = true;
|
||||||
|
|||||||
@@ -9,7 +9,6 @@ in {
|
|||||||
config = lib.mkIf cfg.enable {
|
config = lib.mkIf cfg.enable {
|
||||||
sydnix.impermanence.cache.directories = [
|
sydnix.impermanence.cache.directories = [
|
||||||
".m2" # Clojure dependencies.
|
".m2" # Clojure dependencies.
|
||||||
".gitlibs"
|
|
||||||
];
|
];
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -77,9 +77,7 @@ in {
|
|||||||
};
|
};
|
||||||
|
|
||||||
systemd.user.services.jellyfin-rpc = {
|
systemd.user.services.jellyfin-rpc = {
|
||||||
Unit.Requires = [ "jellyfin-rpc-configure.service" ];
|
|
||||||
Unit.After = [ "jellyfin-rpc-configure.service" ];
|
Unit.After = [ "jellyfin-rpc-configure.service" ];
|
||||||
Install.WantedBy = [ "default.target" ];
|
|
||||||
Service.ExecStart = lib.getExe pkgs.jellyfin-rpc;
|
Service.ExecStart = lib.getExe pkgs.jellyfin-rpc;
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|||||||
@@ -1,22 +0,0 @@
|
|||||||
{ 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.
|
|
||||||
'';
|
|
||||||
};
|
|
||||||
}
|
|
||||||
@@ -1,777 +0,0 @@
|
|||||||
{
|
|
||||||
"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,12 +56,7 @@ in {
|
|||||||
Extra arguments to pass to the final wrapProgram call.
|
Extra arguments to pass to the final wrapProgram call.
|
||||||
'';
|
'';
|
||||||
default = [];
|
default = [];
|
||||||
type = with lib.types;
|
type = lib.types.listOf lib.types.str;
|
||||||
listOf
|
|
||||||
(coercedTo
|
|
||||||
(oneOf [str package])
|
|
||||||
builtins.toString
|
|
||||||
str);
|
|
||||||
apply = lib.escapeShellArgs;
|
apply = lib.escapeShellArgs;
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
@@ -83,7 +78,6 @@ in {
|
|||||||
fontspec
|
fontspec
|
||||||
dvisvgm dvipng wrapfig # For Org-mode previews/export.
|
dvisvgm dvipng wrapfig # For Org-mode previews/export.
|
||||||
amsmath # Essential for mathematics.
|
amsmath # Essential for mathematics.
|
||||||
cancel # Cross out terms in math mode.
|
|
||||||
spath3 # TikZ dependency?
|
spath3 # TikZ dependency?
|
||||||
ulem hyperref
|
ulem hyperref
|
||||||
capt-of
|
capt-of
|
||||||
|
|||||||
@@ -1,31 +0,0 @@
|
|||||||
{ 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"
|
|
||||||
];
|
|
||||||
};
|
|
||||||
}
|
|
||||||
|
|
||||||
@@ -1,52 +0,0 @@
|
|||||||
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
|
|
||||||
@@ -1,18 +0,0 @@
|
|||||||
{ 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"
|
|
||||||
];
|
|
||||||
};
|
|
||||||
}
|
|
||||||
@@ -1,17 +0,0 @@
|
|||||||
{ 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,7 +20,6 @@ in {
|
|||||||
enable = true;
|
enable = true;
|
||||||
addons = with pkgs.ankiAddons; [
|
addons = with pkgs.ankiAddons; [
|
||||||
review-heatmap
|
review-heatmap
|
||||||
anki-connect
|
|
||||||
];
|
];
|
||||||
sync = {
|
sync = {
|
||||||
autoSync = true;
|
autoSync = true;
|
||||||
|
|||||||
@@ -239,7 +239,7 @@ in {
|
|||||||
# Precedence of search engines.
|
# Precedence of search engines.
|
||||||
order = [ "Kagi" "ddg" ];
|
order = [ "Kagi" "ddg" ];
|
||||||
default = "Kagi";
|
default = "Kagi";
|
||||||
privateDefault = "Kagi";
|
privateDefault = "ddg";
|
||||||
engines = {
|
engines = {
|
||||||
"Kagi" = {
|
"Kagi" = {
|
||||||
urls = [{
|
urls = [{
|
||||||
@@ -273,26 +273,6 @@ in {
|
|||||||
"${pkgs.nixos-icons}/share/icons/hicolor/scalable/apps/nix-snowflake.svg";
|
"${pkgs.nixos-icons}/share/icons/hicolor/scalable/apps/nix-snowflake.svg";
|
||||||
definedAliases = [ "!np" ];
|
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" "!위사" ];
|
|
||||||
};
|
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|||||||
67
modules/home/users/crumb/haskell.nix
Normal file
67
modules/home/users/crumb/haskell.nix
Normal file
@@ -0,0 +1,67 @@
|
|||||||
|
{ 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,6 +9,14 @@ in {
|
|||||||
type = lib.types.nullOr lib.types.path;
|
type = lib.types.nullOr lib.types.path;
|
||||||
default = config.stylix.image;
|
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 =
|
polkit.enable =
|
||||||
lib.mkEnableOption "Niri/Gnome Polkit" // { default = true; };
|
lib.mkEnableOption "Niri/Gnome Polkit" // { default = true; };
|
||||||
swaylock.enable =
|
swaylock.enable =
|
||||||
@@ -59,17 +67,26 @@ in {
|
|||||||
stylix.targets.swaylock.enable = cfg.swaylock.enable;
|
stylix.targets.swaylock.enable = cfg.swaylock.enable;
|
||||||
|
|
||||||
services.polkit-gnome.enable = cfg.polkit.enable;
|
services.polkit-gnome.enable = cfg.polkit.enable;
|
||||||
sydnix.xwayland-satellite.enable = lib.mkDefault true;
|
|
||||||
|
|
||||||
# File-picker.
|
# File-picker.
|
||||||
home.packages = [ pkgs.nautilus ];
|
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 = {
|
programs.niri = {
|
||||||
settings = {
|
settings = {
|
||||||
# Activates some Nixpkgs patches to help run Electron applications under
|
# Activates some Nixpkgs patches to help run Electron applications under
|
||||||
# Wayland.
|
# Wayland.
|
||||||
environment = {
|
environment = {
|
||||||
NIXOS_OZONE_WL = "1";
|
NIXOS_OZONE_WL = "1";
|
||||||
|
DISPLAY = ":0";
|
||||||
XDG_CURRENT_DESKTOP = "niri";
|
XDG_CURRENT_DESKTOP = "niri";
|
||||||
QT_QPA_PLATFORM = "wayland";
|
QT_QPA_PLATFORM = "wayland";
|
||||||
ELECTRON_OZONE_PLATFORM_HINT = "auto";
|
ELECTRON_OZONE_PLATFORM_HINT = "auto";
|
||||||
|
|||||||
@@ -3,7 +3,3 @@ exec loadouts/init
|
|||||||
exec overrides/binds.cfg
|
exec overrides/binds.cfg
|
||||||
exec overrides/settings.cfg
|
exec overrides/settings.cfg
|
||||||
|
|
||||||
con_logfile console.log
|
|
||||||
ip 0.0.0.0
|
|
||||||
rcon_password monitor
|
|
||||||
net_start
|
|
||||||
@@ -34,7 +34,7 @@ in {
|
|||||||
home.sessionVariables = {
|
home.sessionVariables = {
|
||||||
ESHELL_ALIASES_FILE = pkgs.writeText "eshell-aliases" ''
|
ESHELL_ALIASES_FILE = pkgs.writeText "eshell-aliases" ''
|
||||||
alias cdp syd-project-cd
|
alias cdp syd-project-cd
|
||||||
alias jj jj --no-pager $*
|
alias js js --no-pager
|
||||||
${lib.concatMapAttrsStringSep
|
${lib.concatMapAttrsStringSep
|
||||||
"\n"
|
"\n"
|
||||||
(alias: value: "alias ${alias} ${value} $*")
|
(alias: value: "alias ${alias} ${value} $*")
|
||||||
@@ -51,10 +51,6 @@ in {
|
|||||||
pkgs.nerd-fonts.victor-mono
|
pkgs.nerd-fonts.victor-mono
|
||||||
pkgs.ibm-plex
|
pkgs.ibm-plex
|
||||||
];
|
];
|
||||||
extraWrapProgramArgs = [
|
|
||||||
"--set" "ESHELL_ALIASES_FILE"
|
|
||||||
config.home.sessionVariables.ESHELL_ALIASES_FILE
|
|
||||||
];
|
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -31,7 +31,6 @@
|
|||||||
syd/which-key
|
syd/which-key
|
||||||
syd/tramp
|
syd/tramp
|
||||||
syd/handle
|
syd/handle
|
||||||
syd/flycheck
|
|
||||||
syd/org
|
syd/org
|
||||||
syd/org/roam
|
syd/org/roam
|
||||||
syd/org/agenda
|
syd/org/agenda
|
||||||
@@ -68,8 +67,4 @@
|
|||||||
syd/grammatical-framework
|
syd/grammatical-framework
|
||||||
syd/tabs
|
syd/tabs
|
||||||
syd/lsp
|
syd/lsp
|
||||||
syd/custom
|
syd/custom))
|
||||||
syd/transient
|
|
||||||
syd/bookmark
|
|
||||||
syd/haskell
|
|
||||||
syd/qbe))
|
|
||||||
|
|||||||
@@ -2,10 +2,7 @@
|
|||||||
|
|
||||||
(require 'syd/base)
|
(require 'syd/base)
|
||||||
|
|
||||||
(use-package auctex)
|
(use-package auctex
|
||||||
|
|
||||||
(use-package tex
|
|
||||||
:straight nil ; Part of auctex.
|
|
||||||
:config
|
:config
|
||||||
(add-to-list 'TeX-view-program-selection '(output-pdf "Sioyek")))
|
(add-to-list 'TeX-view-program-selection '(output-pdf "Sioyek")))
|
||||||
|
|
||||||
|
|||||||
@@ -1,10 +0,0 @@
|
|||||||
;;; -*- 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,7 +1,6 @@
|
|||||||
;;; -*- lexical-binding: t; -*-
|
;;; -*- lexical-binding: t; -*-
|
||||||
|
|
||||||
(require 'syd/base)
|
(require 'syd/base)
|
||||||
(require 'syd/handle)
|
|
||||||
(require 'syd/popups)
|
(require 'syd/popups)
|
||||||
(require 'syd/leader)
|
(require 'syd/leader)
|
||||||
|
|
||||||
@@ -21,38 +20,21 @@
|
|||||||
(use-package cider
|
(use-package cider
|
||||||
:after clojure-mode
|
:after clojure-mode
|
||||||
:config
|
:config
|
||||||
|
|
||||||
(defun syd-clojure-doc (arg)
|
(defun syd-clojure-doc (arg)
|
||||||
(interactive "P")
|
(interactive "P")
|
||||||
(cider-doc arg)
|
(cider-doc arg)
|
||||||
cider-doc-buffer)
|
cider-doc-buffer)
|
||||||
|
|
||||||
(defun syd-clojure-eval-region (beg end)
|
(defun syd-clojure-eval-region (beg end)
|
||||||
(cider-eval-region beg end))
|
(cider-eval-region beg end))
|
||||||
|
|
||||||
(syd-handle '(clojure-mode clojurescript-mode cider-repl-mode)
|
(syd-handle '(clojure-mode clojurescript-mode cider-repl-mode)
|
||||||
:docs #'cider-doc
|
:docs #'cider-doc
|
||||||
:eval-region #'syd-clojure-eval-region
|
:eval-region #'syd-clojure-eval-region
|
||||||
:load-buffer #'cider-load-buffer)
|
:load-buffer #'cider-load-buffer)
|
||||||
|
|
||||||
(add-hook 'cider-repl-mode-hook #'syd-lisp-mode)
|
(add-hook 'cider-repl-mode-hook #'syd-lisp-mode)
|
||||||
|
|
||||||
(syd-push shackle-rules
|
(syd-push shackle-rules
|
||||||
`("*cider-doc*" ,@syd-help-popup-options)
|
`("*cider-doc*" ,@syd-help-popup-options)
|
||||||
'("*cider-test-report*")
|
'("*cider-test-report*")
|
||||||
'("*cider-error*"))
|
'("*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
|
(use-package cider-mode
|
||||||
:straight nil ; Part of `cider'.
|
:straight nil ; Part of `cider'.
|
||||||
@@ -133,9 +115,6 @@
|
|||||||
|
|
||||||
(use-package clj-refactor
|
(use-package clj-refactor
|
||||||
:config
|
: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)
|
(provide 'syd/clojure)
|
||||||
|
|||||||
@@ -3,8 +3,8 @@
|
|||||||
(require 'syd/base)
|
(require 'syd/base)
|
||||||
|
|
||||||
(use-package fcitx
|
(use-package fcitx
|
||||||
|
:custom ((fcitx-remote-command "fcitx5-remote"))
|
||||||
:config
|
:config
|
||||||
(setq fcitx-remote-command "fcitx5-remote")
|
|
||||||
(fcitx-aggressive-setup))
|
(fcitx-aggressive-setup))
|
||||||
|
|
||||||
(provide 'syd/fcitx)
|
(provide 'syd/fcitx)
|
||||||
|
|||||||
@@ -1,14 +0,0 @@
|
|||||||
;;; -*- 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)
|
|
||||||
@@ -1,67 +0,0 @@
|
|||||||
;; -*- 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,8 +69,7 @@
|
|||||||
(general-def
|
(general-def
|
||||||
:prefix-map 'syd-leader-insert-map
|
:prefix-map 'syd-leader-insert-map
|
||||||
"u" #'insert-char
|
"u" #'insert-char
|
||||||
"e" #'emoji-insert
|
"e" #'emoji-insert)
|
||||||
"p" #'syd-insert-file-name)
|
|
||||||
|
|
||||||
;; This is necessary to properly rebind `universal-argument'.
|
;; This is necessary to properly rebind `universal-argument'.
|
||||||
;; `universal-argument-more' is a command that provides additional prefixes
|
;; `universal-argument-more' is a command that provides additional prefixes
|
||||||
|
|||||||
@@ -22,16 +22,11 @@
|
|||||||
"/*" "/=" "/>" "//" "__" "~~" "(*" "*)"
|
"/*" "/=" "/>" "//" "__" "~~" "(*" "*)"
|
||||||
"\\\\" "://"))
|
"\\\\" "://"))
|
||||||
;; Sitelen pona glyphs.
|
;; Sitelen pona glyphs.
|
||||||
(rx-let ((ideograph (any (#xF1900 . #xF198C)))
|
(rx-let ((ideograph (any (#xF1900 . #xF198C))))
|
||||||
(tok-punct (any "" ""))
|
|
||||||
(arrow (any "←-↙"))
|
|
||||||
(zwj ""))
|
|
||||||
(ligature-set-ligatures
|
(ligature-set-ligatures
|
||||||
'fundamental-mode
|
'fundamental-mode
|
||||||
`(("" ,(rx (* (or ideograph tok-punct))))
|
`(("" ,(rx (* ideograph)))
|
||||||
("" ,(rx "" (* (or ideograph tok-punct)) ""))
|
("" ,(rx "" (* ideograph))))))
|
||||||
("" ,(rx zwj arrow))
|
|
||||||
("" ,(rx zwj ideograph)))))
|
|
||||||
(global-ligature-mode 1))
|
(global-ligature-mode 1))
|
||||||
|
|
||||||
(provide 'syd/ligature)
|
(provide 'syd/ligature)
|
||||||
|
|||||||
@@ -2,7 +2,6 @@
|
|||||||
|
|
||||||
(require 'syd/base)
|
(require 'syd/base)
|
||||||
(require 'syd/popups)
|
(require 'syd/popups)
|
||||||
(require 'syd/handle)
|
|
||||||
|
|
||||||
(use-package lsp-mode
|
(use-package lsp-mode
|
||||||
:init
|
:init
|
||||||
@@ -36,12 +35,6 @@
|
|||||||
(syd-push
|
(syd-push
|
||||||
shackle-rules
|
shackle-rules
|
||||||
`(("*lsp-help*" "*lsp-install*")
|
`(("*lsp-help*" "*lsp-install*")
|
||||||
:select nil :size 0.42 :popup t :align bottom))
|
,@syd-help-popup-options)))
|
||||||
(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)
|
(provide 'syd/lsp)
|
||||||
|
|||||||
@@ -193,74 +193,4 @@ form."
|
|||||||
(cons mode (intern (concat (match-string 1 s) "-ts-mode"))))
|
(cons mode (intern (concat (match-string 1 s) "-ts-mode"))))
|
||||||
(error "Symbol `%c' is not a mode." 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)
|
(provide 'syd/prelude)
|
||||||
|
|||||||
@@ -1,7 +1,6 @@
|
|||||||
;;; -*- lexical-binding: t; -*-
|
;;; -*- lexical-binding: t; -*-
|
||||||
|
|
||||||
(require 'syd/base)
|
(require 'syd/base)
|
||||||
(require 'syd/keymaps)
|
|
||||||
(require 'syd/completion) ; For `consult'.
|
(require 'syd/completion) ; For `consult'.
|
||||||
(require 'consult)
|
(require 'consult)
|
||||||
|
|
||||||
|
|||||||
@@ -1,12 +0,0 @@
|
|||||||
;; -*- 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)
|
|
||||||
@@ -1,10 +0,0 @@
|
|||||||
;;; -*- 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)
|
|
||||||
@@ -1,14 +0,0 @@
|
|||||||
{ 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;
|
|
||||||
};
|
|
||||||
};
|
|
||||||
}
|
|
||||||
@@ -1,38 +0,0 @@
|
|||||||
{ 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,13 +12,6 @@ in {
|
|||||||
enableDynamicTheming = false;
|
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 = {
|
services.displayManager.dms-greeter = {
|
||||||
enable = true;
|
enable = true;
|
||||||
compositor.name = assert config.sydnix.niri.enable; "niri";
|
compositor.name = assert config.sydnix.niri.enable; "niri";
|
||||||
|
|||||||
@@ -1,8 +1,6 @@
|
|||||||
{ config, lib, pkgs, ... }:
|
{ config, lib, pkgs, ... }:
|
||||||
|
|
||||||
let
|
let cfg = config.sydnix.deertopia.gitea;
|
||||||
cfg = config.sydnix.deertopia.gitea;
|
|
||||||
commas = lib.concatStringsSep ",";
|
|
||||||
in {
|
in {
|
||||||
options.sydnix.deertopia.gitea = {
|
options.sydnix.deertopia.gitea = {
|
||||||
enable = lib.mkEnableOption "Gitea";
|
enable = lib.mkEnableOption "Gitea";
|
||||||
@@ -64,38 +62,6 @@ in {
|
|||||||
DISABLE_REGISTRATION = true;
|
DISABLE_REGISTRATION = true;
|
||||||
ENABLE_NOTIFY_MAIL = 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 = {
|
mailer = {
|
||||||
ENABLED = true;
|
ENABLED = true;
|
||||||
FROM = "Gitea <no-reply@deertopia.net>";
|
FROM = "Gitea <no-reply@deertopia.net>";
|
||||||
|
|||||||
@@ -1,17 +0,0 @@
|
|||||||
{ 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,13 +22,11 @@ in {
|
|||||||
"https://nix-community.cachix.org"
|
"https://nix-community.cachix.org"
|
||||||
"https://cache.nixos.org"
|
"https://cache.nixos.org"
|
||||||
"https://cache.iog.io"
|
"https://cache.iog.io"
|
||||||
"https://cache.zw3rk.com"
|
|
||||||
];
|
];
|
||||||
trusted-public-keys = [
|
trusted-public-keys = [
|
||||||
(builtins.readFile ../../public-keys/deertopia-cache.pub.pem)
|
(builtins.readFile ../../public-keys/deertopia-cache.pub.pem)
|
||||||
"nix-community.cachix.org-1:mB9FSh9qf2dCimDSUo8Zy7bkq5CX+/rkCWyvRCYg3Fs="
|
"nix-community.cachix.org-1:mB9FSh9qf2dCimDSUo8Zy7bkq5CX+/rkCWyvRCYg3Fs="
|
||||||
"hydra.iohk.io:f/Ea+s+dFdN+3Y/G+FDgSq+a5NEWhJGzdjvKNGv0/EQ="
|
"hydra.iohk.io:f/Ea+s+dFdN+3Y/G+FDgSq+a5NEWhJGzdjvKNGv0/EQ="
|
||||||
"loony-tools:pr9m4BkM/5/eSTZlkQyRt57Jz7OMBxNSUiMC4FkcNfk="
|
|
||||||
];
|
];
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
|
|||||||
@@ -46,12 +46,6 @@
|
|||||||
kdeconnect.enable = true;
|
kdeconnect.enable = true;
|
||||||
qalculate.enable = true;
|
qalculate.enable = true;
|
||||||
toki-pona.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 = {
|
sops = {
|
||||||
enable = true;
|
enable = true;
|
||||||
keyFile = "/persist/private-keys/age/crumb";
|
keyFile = "/persist/private-keys/age/crumb";
|
||||||
@@ -70,7 +64,6 @@
|
|||||||
fcitx5.enable = true;
|
fcitx5.enable = true;
|
||||||
anki.enable = true;
|
anki.enable = true;
|
||||||
mumble.enable = true;
|
mumble.enable = true;
|
||||||
rnote.enable = on "sydpc";
|
|
||||||
};
|
};
|
||||||
users.msyds = {
|
users.msyds = {
|
||||||
discord.enable = true;
|
discord.enable = true;
|
||||||
@@ -81,8 +74,7 @@
|
|||||||
syncthing.enable = true;
|
syncthing.enable = true;
|
||||||
fonts.enable = true;
|
fonts.enable = true;
|
||||||
dank-material-shell.enable = true;
|
dank-material-shell.enable = true;
|
||||||
sioyek.enable = on "fruitbook";
|
sioyek.enable = true;
|
||||||
zathura.enable = on "sydpc";
|
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user