Compare commits
69 commits
feature/cl
...
main
Author | SHA1 | Date | |
---|---|---|---|
![]() |
01304d1852 | ||
![]() |
439912b50b | ||
![]() |
b5555ac4b4 | ||
![]() |
e98f1f8bd0 | ||
![]() |
ca763d0077 | ||
![]() |
009567e423 | ||
![]() |
4f71f39d2d | ||
![]() |
14207fd7ea | ||
![]() |
ba11783c6a | ||
![]() |
4a9e0a232c | ||
![]() |
d523076140 | ||
![]() |
e06fa19ecd | ||
![]() |
bc9e5de27f | ||
![]() |
e5acd5e0ce | ||
![]() |
1a95d95576 | ||
![]() |
12054828f9 | ||
![]() |
0fd2eb288b | ||
![]() |
39524b282f | ||
![]() |
f0bd90c896 | ||
![]() |
1ed5bf9288 | ||
![]() |
07f15e92ea | ||
![]() |
17ff0c0635 | ||
![]() |
76f20fb831 | ||
![]() |
6e74b0e916 | ||
![]() |
aec360748f | ||
![]() |
e208035919 | ||
![]() |
ba3503aaed | ||
![]() |
fa62983e2c | ||
![]() |
e99c573791 | ||
![]() |
28b0eff1ca | ||
![]() |
e10adad3d8 | ||
![]() |
353f593b64 | ||
![]() |
86c164e05a | ||
![]() |
2fd9434feb | ||
![]() |
42cdc5b508 | ||
![]() |
653c14ee0e | ||
![]() |
2f2027fe85 | ||
![]() |
e8f3287759 | ||
![]() |
077c53e67f | ||
![]() |
eca1792a70 | ||
![]() |
cecbc8f708 | ||
![]() |
1b99e1b09d | ||
![]() |
574fffb715 | ||
![]() |
e72cb6241f | ||
![]() |
c7ba3deafe | ||
![]() |
e9583eae10 | ||
![]() |
7adc65f482 | ||
![]() |
ba7c206479 | ||
![]() |
8beb5617d4 | ||
![]() |
5cf4010bcf | ||
![]() |
8e873ecd9c | ||
![]() |
bc05c958d7 | ||
![]() |
e1cb5e8f57 | ||
![]() |
a83bbcb9bd | ||
![]() |
99d8b79580 | ||
![]() |
b838caa222 | ||
![]() |
9e96d809d3 | ||
![]() |
55eaa80e98 | ||
![]() |
3aacad45f3 | ||
![]() |
f721410bdd | ||
![]() |
9a33ca1283 | ||
![]() |
83ef3a0b9b | ||
![]() |
8c839e282d | ||
![]() |
a7b0ddfa5d | ||
![]() |
ea82349a38 | ||
![]() |
3dad841848 | ||
![]() |
8807164c20 | ||
![]() |
25e0fd8212 | ||
![]() |
7a3a6f3498 |
74 changed files with 810 additions and 1009 deletions
components
flake.lockflake.nixhomes
machines
cherry
chungus
configuration.nixhass-mqtt.nixhass-zigbee2mqtt.nixhass.nixmedia-audiobookshelf.nixmedia-jellyfin.nixmedia-navidrome.nixmedia-share.nixmedia-syncthing.nixnetwork-tinc-retiolum.nixnetwork-wireguard-wg0.nixservice-atuin.nixservice-forgejo.nixservice-paperless-healthchecks.nixservice-paperless.nixservice-s3.nixservice-taskwarrior.nixservice-vault.nix
telemetry
topology.nixzerotier-controller.nixorbi
configuration.nixmedia-nextcloud.nixmedia-transmission2.nixnetwork-wireguard.nixservice-forgejo.nixservice-nix-cache.nixservice-photoprism.nixservice-surrealdb.nixsocial-matrix-terranix.nix
usbstick
nix
scripts
system/all
|
@ -13,7 +13,7 @@ with lib;
|
|||
};
|
||||
|
||||
config = mkIf (config.components.chaospott.enable && config.components.gui.audio.enable) {
|
||||
hardware.pulseaudio.zeroconf.discovery.enable = true;
|
||||
services.pulseaudio.zeroconf.discovery.enable = true;
|
||||
environment.systemPackages = with pkgs; [
|
||||
paprefs
|
||||
];
|
||||
|
|
|
@ -12,45 +12,54 @@ with lib;
|
|||
default = config.components.gui.enable;
|
||||
};
|
||||
|
||||
config = mkIf (config.components.gui.audio.enable) {
|
||||
config = mkMerge [
|
||||
(mkIf (config.components.gui.audio.enable) {
|
||||
|
||||
security.rtkit.enable = true;
|
||||
security.rtkit.enable = true;
|
||||
hardware.bluetooth = {
|
||||
enable = true;
|
||||
powerOnBoot = true;
|
||||
};
|
||||
|
||||
hardware.pulseaudio.enable = false;
|
||||
environment.systemPackages = with pkgs; [
|
||||
alsa-utils
|
||||
|
||||
hardware.bluetooth = {
|
||||
enable = true;
|
||||
powerOnBoot = true;
|
||||
};
|
||||
# PulseAudio control
|
||||
# ------------------
|
||||
ponymix
|
||||
pavucontrol
|
||||
lxqt.pavucontrol-qt
|
||||
];
|
||||
|
||||
environment.systemPackages = with pkgs; [
|
||||
alsa-utils
|
||||
services.pipewire = {
|
||||
#enable = true;
|
||||
systemWide = true;
|
||||
alsa.enable = true;
|
||||
alsa.support32Bit = true;
|
||||
pulse.enable = true;
|
||||
jack.enable = true;
|
||||
};
|
||||
|
||||
# PulseAudio control
|
||||
# ------------------
|
||||
ponymix
|
||||
pavucontrol
|
||||
lxqt.pavucontrol-qt
|
||||
];
|
||||
environment.etc = {
|
||||
"wireplumber/bluetooth.lua.d/51-bluez-config.lua".text = ''
|
||||
bluez_monitor.properties = {
|
||||
["bluez5.enable-sbc-xq"] = true,
|
||||
["bluez5.enable-msbc"] = true,
|
||||
["bluez5.enable-hw-volume"] = true,
|
||||
["bluez5.headset-roles"] = "[ hsp_hs hsp_ag hfp_hf hfp_ag ]"
|
||||
}
|
||||
'';
|
||||
};
|
||||
})
|
||||
|
||||
services.pipewire = {
|
||||
enable = true;
|
||||
systemWide = true;
|
||||
alsa.enable = true;
|
||||
alsa.support32Bit = true;
|
||||
pulse.enable = true;
|
||||
jack.enable = true;
|
||||
};
|
||||
{
|
||||
|
||||
environment.etc = {
|
||||
"wireplumber/bluetooth.lua.d/51-bluez-config.lua".text = ''
|
||||
bluez_monitor.properties = {
|
||||
["bluez5.enable-sbc-xq"] = true,
|
||||
["bluez5.enable-msbc"] = true,
|
||||
["bluez5.enable-hw-volume"] = true,
|
||||
["bluez5.headset-roles"] = "[ hsp_hs hsp_ag hfp_hf hfp_ag ]"
|
||||
}
|
||||
'';
|
||||
};
|
||||
};
|
||||
# this is always true
|
||||
# seems other options enable this one
|
||||
services.pipewire.enable = config.components.gui.audio.enable;
|
||||
services.pulseaudio.enable = false;
|
||||
|
||||
}
|
||||
|
||||
];
|
||||
}
|
||||
|
|
|
@ -16,6 +16,7 @@ with lib;
|
|||
./browser.nix
|
||||
./cups.nix
|
||||
./home-manager
|
||||
./kde.nix
|
||||
./kmonad.nix
|
||||
./noti.nix # todo: make this different (use password store and such)
|
||||
./pass.nix
|
||||
|
|
19
components/gui/kde.nix
Normal file
19
components/gui/kde.nix
Normal file
|
@ -0,0 +1,19 @@
|
|||
{
|
||||
config,
|
||||
pkgs,
|
||||
lib,
|
||||
...
|
||||
}:
|
||||
{
|
||||
|
||||
options.components.gui.kde.enable = lib.mkOption {
|
||||
type = lib.types.bool;
|
||||
default = config.components.gui.enable;
|
||||
};
|
||||
|
||||
config = lib.mkIf (config.components.gui.kde.enable) {
|
||||
|
||||
services.desktopManager.plasma6.enable = true;
|
||||
|
||||
};
|
||||
}
|
|
@ -14,72 +14,85 @@ with lib;
|
|||
default = config.components.gui.enable;
|
||||
};
|
||||
|
||||
config = mkIf (config.components.gui.xorg.enable && config.components.gui.enable) {
|
||||
|
||||
# system.custom.fonts.enable = true;
|
||||
services.displayManager = {
|
||||
defaultSession = lib.mkDefault "none+i3";
|
||||
autoLogin.enable = lib.mkDefault true;
|
||||
autoLogin.user = config.users.users.mainUser.name;
|
||||
};
|
||||
|
||||
services.xserver = {
|
||||
|
||||
enable = true;
|
||||
|
||||
displayManager = {
|
||||
lightdm.enable = lib.mkDefault true;
|
||||
};
|
||||
|
||||
desktopManager.xterm.enable = false;
|
||||
windowManager.i3.enable = true;
|
||||
|
||||
# mouse/touchpad
|
||||
# --------------
|
||||
|
||||
};
|
||||
|
||||
services.libinput = {
|
||||
enable = true;
|
||||
touchpad = {
|
||||
disableWhileTyping = true;
|
||||
tapping = true;
|
||||
scrollMethod = "twofinger";
|
||||
accelSpeed = "1.3";
|
||||
naturalScrolling = true;
|
||||
horizontalScrolling = true;
|
||||
};
|
||||
};
|
||||
|
||||
# Packages
|
||||
# --------
|
||||
environment.systemPackages = with pkgs; [
|
||||
|
||||
xclip
|
||||
xtrlock-pam
|
||||
xorg.xev
|
||||
|
||||
dmenu
|
||||
arandr
|
||||
xcalib
|
||||
flameshot
|
||||
feh
|
||||
|
||||
];
|
||||
|
||||
# Xresources config
|
||||
# -----------------
|
||||
# spread the Xresource config
|
||||
# across different files
|
||||
# just add a file into `/etc/X11/Xresource.d/` and it will be
|
||||
# evaluated.
|
||||
services.xserver.displayManager.sessionCommands = ''
|
||||
for file in `ls /etc/X11/Xresource.d/`
|
||||
do
|
||||
${pkgs.xorg.xrdb}/bin/xrdb -merge /etc/X11/Xresource.d/$file
|
||||
done
|
||||
'';
|
||||
environment.etc."/X11/Xresource.d/.keep".text = "";
|
||||
|
||||
options.components.gui.xorg.lightdm.enable = mkOption {
|
||||
type = lib.types.bool;
|
||||
default = config.components.gui.xorg.enable;
|
||||
};
|
||||
|
||||
options.components.gui.xorg.sddm.enable = mkOption {
|
||||
type = lib.types.bool;
|
||||
default = !config.components.gui.xorg.lightdm.enable;
|
||||
};
|
||||
|
||||
config = mkMerge [
|
||||
|
||||
(mkIf (config.components.gui.xorg.lightdm.enable && config.components.gui.xorg.enable) {
|
||||
|
||||
services.displayManager = {
|
||||
defaultSession = "none+i3";
|
||||
autoLogin.enable = lib.mkDefault true;
|
||||
autoLogin.user = config.users.users.mainUser.name;
|
||||
};
|
||||
|
||||
services.xserver.displayManager.lightdm.enable = true;
|
||||
|
||||
})
|
||||
|
||||
(mkIf (config.components.gui.xorg.sddm.enable && config.components.gui.xorg.enable) {
|
||||
|
||||
services.xserver.displayManager.sddm.enable = true;
|
||||
|
||||
})
|
||||
|
||||
(mkIf (config.components.gui.xorg.enable && config.components.gui.enable) {
|
||||
|
||||
services.xserver.enable = true;
|
||||
|
||||
services.xserver.windowManager.i3.enable = true;
|
||||
|
||||
services.libinput = {
|
||||
enable = true;
|
||||
touchpad = {
|
||||
disableWhileTyping = true;
|
||||
tapping = true;
|
||||
scrollMethod = "twofinger";
|
||||
accelSpeed = "1.3";
|
||||
naturalScrolling = true;
|
||||
horizontalScrolling = true;
|
||||
};
|
||||
};
|
||||
|
||||
# Packages
|
||||
# --------
|
||||
environment.systemPackages = with pkgs; [
|
||||
|
||||
xclip
|
||||
#xtrlock-pam
|
||||
xorg.xev
|
||||
|
||||
dmenu
|
||||
arandr
|
||||
xcalib
|
||||
flameshot
|
||||
feh
|
||||
|
||||
];
|
||||
|
||||
# Xresources config
|
||||
# -----------------
|
||||
# spread the Xresource config
|
||||
# across different files
|
||||
# just add a file into `/etc/X11/Xresource.d/` and it will be
|
||||
# evaluated.
|
||||
services.xserver.displayManager.sessionCommands = ''
|
||||
for file in `ls /etc/X11/Xresource.d/`
|
||||
do
|
||||
${pkgs.xorg.xrdb}/bin/xrdb -merge /etc/X11/Xresource.d/$file
|
||||
done
|
||||
'';
|
||||
environment.etc."/X11/Xresource.d/.keep".text = "";
|
||||
|
||||
})
|
||||
|
||||
];
|
||||
}
|
||||
|
|
|
@ -136,7 +136,7 @@ in
|
|||
home-manager.sharedModules = [
|
||||
{
|
||||
programs.obs-studio = {
|
||||
enable = true;
|
||||
enable = false;
|
||||
plugins = with pkgs.obs-studio-plugins; [
|
||||
obs-backgroundremoval
|
||||
obs-vaapi
|
||||
|
@ -161,17 +161,17 @@ in
|
|||
# obs studio stuff
|
||||
obs-cli
|
||||
v4l-utils
|
||||
obs-cmd
|
||||
#obs-cmd
|
||||
|
||||
# to record your screen
|
||||
# ---------------------
|
||||
simplescreenrecorder
|
||||
#simplescreenrecorder
|
||||
screenKey
|
||||
#obs-studio
|
||||
|
||||
# to transcode video material
|
||||
# ---------------------------
|
||||
handbrake
|
||||
# handbrake
|
||||
ffmpeg-full
|
||||
|
||||
];
|
||||
|
|
|
@ -1,21 +0,0 @@
|
|||
{
|
||||
lib,
|
||||
config,
|
||||
inputs,
|
||||
...
|
||||
}:
|
||||
with lib;
|
||||
with types;
|
||||
{
|
||||
imports = [
|
||||
../timezone.nix
|
||||
];
|
||||
|
||||
config = {
|
||||
telemetry.enable = mkDefault true;
|
||||
telemetry.metrics.enable = mkDefault false;
|
||||
telemetry.opentelemetry.enable = false;
|
||||
services.journald.extraConfig = "SystemMaxUse=1G";
|
||||
};
|
||||
|
||||
}
|
|
@ -36,6 +36,13 @@ in
|
|||
make sure ssh is only available trough the tinc
|
||||
'';
|
||||
};
|
||||
allowMosh = mkOption {
|
||||
type = bool;
|
||||
default = true;
|
||||
description = ''
|
||||
make mosh port available
|
||||
'';
|
||||
};
|
||||
};
|
||||
|
||||
config = mkMerge [
|
||||
|
@ -69,6 +76,16 @@ in
|
|||
iptables --table nat --append PREROUTING ! --in-interface tinc.+ --protocol tcp --match tcp --dport 22 --jump REDIRECT --to-ports 0
|
||||
'';
|
||||
})
|
||||
|
||||
(mkIf (cfg.allowMosh && cfg.enable) {
|
||||
networking.firewall.allowedUDPPortRanges = [
|
||||
{
|
||||
from = 60000;
|
||||
to = 61000;
|
||||
}
|
||||
];
|
||||
})
|
||||
|
||||
];
|
||||
|
||||
}
|
||||
|
|
|
@ -14,10 +14,13 @@ with lib;
|
|||
|
||||
config = mkIf config.components.virtualisation.virtualbox.enable {
|
||||
|
||||
virtualisation.virtualbox = {
|
||||
host.enable = true;
|
||||
guest.enable = true;
|
||||
};
|
||||
virtualisation.virtualbox.host.enable = true;
|
||||
virtualisation.virtualbox.host.enableExtensionPack = true;
|
||||
virtualisation.virtualbox.guest.enable = true;
|
||||
virtualisation.virtualbox.guest.dragAndDrop = true;
|
||||
|
||||
# https://discourse.nixos.org/t/issue-with-virtualbox-in-24-11/57607/2
|
||||
boot.kernelParams = [ "kvm.enable_virt_at_load=0" ];
|
||||
|
||||
users.extraGroups.vboxusers.members = [ config.users.users.mainUser.name ];
|
||||
|
||||
|
|
391
flake.lock
generated
391
flake.lock
generated
|
@ -82,11 +82,11 @@
|
|||
"treefmt-nix": "treefmt-nix"
|
||||
},
|
||||
"locked": {
|
||||
"lastModified": 1739259543,
|
||||
"narHash": "sha256-AW5UFLVstsfzTUVRJGJLmyhc9wDxo/1aROjsawEBD/c=",
|
||||
"lastModified": 1740718722,
|
||||
"narHash": "sha256-QhvkAvtgwZl89/7FjCFe+frxGxdQhYNfqc2+ymFdfcA=",
|
||||
"ref": "refs/heads/main",
|
||||
"rev": "15e8df894e8ca457dadb8953750b28363f1bae6c",
|
||||
"revCount": 5648,
|
||||
"rev": "bcd6c7108afbc692b0b3bd39299fa153eefe1104",
|
||||
"revCount": 5739,
|
||||
"type": "git",
|
||||
"url": "https://git.clan.lol/clan/clan-core"
|
||||
},
|
||||
|
@ -104,11 +104,11 @@
|
|||
"nixpkgs": "nixpkgs"
|
||||
},
|
||||
"locked": {
|
||||
"lastModified": 1723143645,
|
||||
"narHash": "sha256-/71L2ZBM9AmUpEQC19Rf7AxA+BhIquObB8aZDkfVRz8=",
|
||||
"lastModified": 1739428569,
|
||||
"narHash": "sha256-uvW5PQqw4+cqjoaoPB/frHY7EjO+ehRryOHAkJKYX5A=",
|
||||
"owner": "mrvandalo",
|
||||
"repo": "clan-fact-generators",
|
||||
"rev": "620c5d3185594b3e2d91e29a7590f44abae4319c",
|
||||
"rev": "882fc040fcd283044a940a5e11e81a7e86aa76ce",
|
||||
"type": "github"
|
||||
},
|
||||
"original": {
|
||||
|
@ -156,6 +156,24 @@
|
|||
"type": "github"
|
||||
}
|
||||
},
|
||||
"devshell_3": {
|
||||
"inputs": {
|
||||
"nixpkgs": "nixpkgs_9"
|
||||
},
|
||||
"locked": {
|
||||
"lastModified": 1735644329,
|
||||
"narHash": "sha256-tO3HrHriyLvipc4xr+Ewtdlo7wM1OjXNjlWRgmM7peY=",
|
||||
"owner": "numtide",
|
||||
"repo": "devshell",
|
||||
"rev": "f7795ede5b02664b57035b3b757876703e2c3eac",
|
||||
"type": "github"
|
||||
},
|
||||
"original": {
|
||||
"owner": "numtide",
|
||||
"repo": "devshell",
|
||||
"type": "github"
|
||||
}
|
||||
},
|
||||
"disko": {
|
||||
"inputs": {
|
||||
"nixpkgs": [
|
||||
|
@ -164,11 +182,11 @@
|
|||
]
|
||||
},
|
||||
"locked": {
|
||||
"lastModified": 1738765162,
|
||||
"narHash": "sha256-3Z40qHaFScWUCVQrGc4Y+RdoPsh1R/wIh+AN4cTXP0I=",
|
||||
"lastModified": 1739634831,
|
||||
"narHash": "sha256-xFnU+uUl48Icas2wPQ+ZzlL2O3n8f6J2LrzNK9f2nng=",
|
||||
"owner": "nix-community",
|
||||
"repo": "disko",
|
||||
"rev": "ff3568858c54bd306e9e1f2886f0f781df307dff",
|
||||
"rev": "fa5746ecea1772cf59b3f34c5816ab3531478142",
|
||||
"type": "github"
|
||||
},
|
||||
"original": {
|
||||
|
@ -202,11 +220,11 @@
|
|||
"firefox-gnome-theme": {
|
||||
"flake": false,
|
||||
"locked": {
|
||||
"lastModified": 1736899990,
|
||||
"narHash": "sha256-S79Hqn2EtSxU4kp99t8tRschSifWD4p/51++0xNWUxw=",
|
||||
"lastModified": 1739223196,
|
||||
"narHash": "sha256-vAxN2f3rvl5q62gQQjZGVSvF93nAsOxntuFz+e/655w=",
|
||||
"owner": "rafaelmardojai",
|
||||
"repo": "firefox-gnome-theme",
|
||||
"rev": "91ca1f82d717b02ceb03a3f423cbe8082ebbb26d",
|
||||
"rev": "a89108e6272426f4eddd93ba17d0ea101c34fb21",
|
||||
"type": "github"
|
||||
},
|
||||
"original": {
|
||||
|
@ -232,7 +250,6 @@
|
|||
}
|
||||
},
|
||||
"flake-compat_2": {
|
||||
"flake": false,
|
||||
"locked": {
|
||||
"lastModified": 1733328505,
|
||||
"narHash": "sha256-NeCCThCEP3eCl2l/+27kNNK7QrwZB1IJCrXfrbv5oqU=",
|
||||
|
@ -362,14 +379,18 @@
|
|||
},
|
||||
"flake-parts_7": {
|
||||
"inputs": {
|
||||
"nixpkgs-lib": "nixpkgs-lib_5"
|
||||
"nixpkgs-lib": [
|
||||
"stylix",
|
||||
"nur",
|
||||
"nixpkgs"
|
||||
]
|
||||
},
|
||||
"locked": {
|
||||
"lastModified": 1726153070,
|
||||
"narHash": "sha256-HO4zgY0ekfwO5bX0QH/3kJ/h4KvUDFZg8YpkNwIbg1U=",
|
||||
"lastModified": 1733312601,
|
||||
"narHash": "sha256-4pDvzqnegAfRkPwO3wmwBhVi/Sye1mzps0zHWYnP88c=",
|
||||
"owner": "hercules-ci",
|
||||
"repo": "flake-parts",
|
||||
"rev": "bcef6817a8b2aa20a5a6dbb19b43e63c5bf8619a",
|
||||
"rev": "205b12d8b7cd4802fbcb8e8ef6a0f1408781a4f9",
|
||||
"type": "github"
|
||||
},
|
||||
"original": {
|
||||
|
@ -379,6 +400,24 @@
|
|||
}
|
||||
},
|
||||
"flake-parts_8": {
|
||||
"inputs": {
|
||||
"nixpkgs-lib": "nixpkgs-lib_5"
|
||||
},
|
||||
"locked": {
|
||||
"lastModified": 1738453229,
|
||||
"narHash": "sha256-7H9XgNiGLKN1G1CgRh0vUL4AheZSYzPm+zmZ7vxbJdo=",
|
||||
"owner": "hercules-ci",
|
||||
"repo": "flake-parts",
|
||||
"rev": "32ea77a06711b758da0ad9bd6a844c5740a87abd",
|
||||
"type": "github"
|
||||
},
|
||||
"original": {
|
||||
"owner": "hercules-ci",
|
||||
"repo": "flake-parts",
|
||||
"type": "github"
|
||||
}
|
||||
},
|
||||
"flake-parts_9": {
|
||||
"inputs": {
|
||||
"nixpkgs-lib": "nixpkgs-lib_6"
|
||||
},
|
||||
|
@ -512,11 +551,11 @@
|
|||
]
|
||||
},
|
||||
"locked": {
|
||||
"lastModified": 1735882644,
|
||||
"narHash": "sha256-3FZAG+pGt3OElQjesCAWeMkQ7C/nB1oTHLRQ8ceP110=",
|
||||
"lastModified": 1737465171,
|
||||
"narHash": "sha256-R10v2hoJRLq8jcL4syVFag7nIGE7m13qO48wRIukWNg=",
|
||||
"owner": "cachix",
|
||||
"repo": "git-hooks.nix",
|
||||
"rev": "a5a961387e75ae44cc20f0a57ae463da5e959656",
|
||||
"rev": "9364dc02281ce2d37a1f55b6e51f7c0f65a75f17",
|
||||
"type": "github"
|
||||
},
|
||||
"original": {
|
||||
|
@ -595,11 +634,11 @@
|
|||
"treefmt-nix": "treefmt-nix_2"
|
||||
},
|
||||
"locked": {
|
||||
"lastModified": 1729744850,
|
||||
"narHash": "sha256-2tggkyfZKEHPsubKxqW1KhN9vzNJVpxLdFtyaFNTJR0=",
|
||||
"lastModified": 1739947726,
|
||||
"narHash": "sha256-5GUrVccTk1iIuM7JbJsTqM57Etxek9ebo6e+loQadus=",
|
||||
"owner": "mrvandalo",
|
||||
"repo": "nixos-healthchecks",
|
||||
"rev": "22119198994f20ba6d68efa2c1106aae83d74a8f",
|
||||
"rev": "45da1993e4b568590170cee8d70e7c2266b2f536",
|
||||
"type": "github"
|
||||
},
|
||||
"original": {
|
||||
|
@ -615,11 +654,11 @@
|
|||
]
|
||||
},
|
||||
"locked": {
|
||||
"lastModified": 1738753876,
|
||||
"narHash": "sha256-yXT82kERWL4R81hfun9BuT478Q6ut0dJzdQjAxjRS38=",
|
||||
"lastModified": 1740845322,
|
||||
"narHash": "sha256-AXEgFj3C0YJhu9k1OhbRhiA6FnDr81dQZ65U3DhaWpw=",
|
||||
"owner": "nix-community",
|
||||
"repo": "home-manager",
|
||||
"rev": "f20b7a8ab527a2482f13754dc00b2deaddc34599",
|
||||
"rev": "fcac3d6d88302a5e64f6cb8014ac785e08874c8d",
|
||||
"type": "github"
|
||||
},
|
||||
"original": {
|
||||
|
@ -700,11 +739,11 @@
|
|||
"treefmt-nix": "treefmt-nix_3"
|
||||
},
|
||||
"locked": {
|
||||
"lastModified": 1738399995,
|
||||
"narHash": "sha256-2s+b7M2UayudwHQTVSo2RSF1sKbasqCXHYbE3XStVVI=",
|
||||
"lastModified": 1740657886,
|
||||
"narHash": "sha256-7kHxBQuzb7gcHzVmLGljJ4kF6BDDSYVCIxYFDmYPnAo=",
|
||||
"owner": "nix-community",
|
||||
"repo": "nixos-anywhere",
|
||||
"rev": "d4a3ecf32bd3cc9d243e0a2f37de91bc84b14216",
|
||||
"rev": "77e6a4e14baa93a29952ea9f0e4a59a29cca09e9",
|
||||
"type": "github"
|
||||
},
|
||||
"original": {
|
||||
|
@ -715,11 +754,11 @@
|
|||
},
|
||||
"nixos-facter-modules": {
|
||||
"locked": {
|
||||
"lastModified": 1736931726,
|
||||
"narHash": "sha256-aY55yiifyo1XPPpbpH0kWlV1g2dNGBlx6622b7OK8ks=",
|
||||
"lastModified": 1738752252,
|
||||
"narHash": "sha256-/nA3tDdp/2g0FBy8966ppC2WDoyXtUWaHkZWL+N3ZKc=",
|
||||
"owner": "numtide",
|
||||
"repo": "nixos-facter-modules",
|
||||
"rev": "fa11d87b61b2163efbb9aed7b7a5ae0299e5ab9c",
|
||||
"rev": "60f8b8f3f99667de6a493a44375e5506bf0c48b1",
|
||||
"type": "github"
|
||||
},
|
||||
"original": {
|
||||
|
@ -730,11 +769,11 @@
|
|||
},
|
||||
"nixos-hardware": {
|
||||
"locked": {
|
||||
"lastModified": 1738638143,
|
||||
"narHash": "sha256-ZYMe4c4OCtIUBn5hx15PEGr0+B1cNEpl2dsaLxwY2W0=",
|
||||
"lastModified": 1740646007,
|
||||
"narHash": "sha256-dMReDQobS3kqoiUCQIYI9c0imPXRZnBubX20yX/G5LE=",
|
||||
"owner": "nixos",
|
||||
"repo": "nixos-hardware",
|
||||
"rev": "9bdd53f5908453e4d03f395eb1615c3e9a351f70",
|
||||
"rev": "009b764ac98a3602d41fc68072eeec5d24fc0e49",
|
||||
"type": "github"
|
||||
},
|
||||
"original": {
|
||||
|
@ -755,11 +794,11 @@
|
|||
]
|
||||
},
|
||||
"locked": {
|
||||
"lastModified": 1734098258,
|
||||
"narHash": "sha256-3mzGstXtPqt+zWzXqesgQ2haEI6LNCFhc/uU3Bcj6Ak=",
|
||||
"lastModified": 1740452541,
|
||||
"narHash": "sha256-aa5gPveHysMTVkxj+0iH0BdcSn8+v8lZPud+IItOSaQ=",
|
||||
"owner": "nix-community",
|
||||
"repo": "nixos-images",
|
||||
"rev": "231f5f6370e78d04675c9fa8199be6c3b1b85773",
|
||||
"rev": "283bbacb81bd2c1a7b89f33e011ecabe398a564e",
|
||||
"type": "github"
|
||||
},
|
||||
"original": {
|
||||
|
@ -800,70 +839,6 @@
|
|||
"type": "github"
|
||||
}
|
||||
},
|
||||
"nixpkgs-legacy_2211": {
|
||||
"locked": {
|
||||
"lastModified": 1688392541,
|
||||
"narHash": "sha256-lHrKvEkCPTUO+7tPfjIcb7Trk6k31rz18vkyqmkeJfY=",
|
||||
"owner": "nixos",
|
||||
"repo": "nixpkgs",
|
||||
"rev": "ea4c80b39be4c09702b0cb3b42eab59e2ba4f24b",
|
||||
"type": "github"
|
||||
},
|
||||
"original": {
|
||||
"owner": "nixos",
|
||||
"ref": "nixos-22.11",
|
||||
"repo": "nixpkgs",
|
||||
"type": "github"
|
||||
}
|
||||
},
|
||||
"nixpkgs-legacy_2311": {
|
||||
"locked": {
|
||||
"lastModified": 1720535198,
|
||||
"narHash": "sha256-zwVvxrdIzralnSbcpghA92tWu2DV2lwv89xZc8MTrbg=",
|
||||
"owner": "nixos",
|
||||
"repo": "nixpkgs",
|
||||
"rev": "205fd4226592cc83fd4c0885a3e4c9c400efabb5",
|
||||
"type": "github"
|
||||
},
|
||||
"original": {
|
||||
"owner": "nixos",
|
||||
"ref": "nixos-23.11",
|
||||
"repo": "nixpkgs",
|
||||
"type": "github"
|
||||
}
|
||||
},
|
||||
"nixpkgs-legacy_2405": {
|
||||
"locked": {
|
||||
"lastModified": 1735563628,
|
||||
"narHash": "sha256-OnSAY7XDSx7CtDoqNh8jwVwh4xNL/2HaJxGjryLWzX8=",
|
||||
"owner": "nixos",
|
||||
"repo": "nixpkgs",
|
||||
"rev": "b134951a4c9f3c995fd7be05f3243f8ecd65d798",
|
||||
"type": "github"
|
||||
},
|
||||
"original": {
|
||||
"owner": "nixos",
|
||||
"ref": "nixos-24.05",
|
||||
"repo": "nixpkgs",
|
||||
"type": "github"
|
||||
}
|
||||
},
|
||||
"nixpkgs-legacy_2411": {
|
||||
"locked": {
|
||||
"lastModified": 1738702386,
|
||||
"narHash": "sha256-nJj8f78AYAxl/zqLiFGXn5Im1qjFKU8yBPKoWEeZN5M=",
|
||||
"owner": "nixos",
|
||||
"repo": "nixpkgs",
|
||||
"rev": "030ba1976b7c0e1a67d9716b17308ccdab5b381e",
|
||||
"type": "github"
|
||||
},
|
||||
"original": {
|
||||
"owner": "nixos",
|
||||
"ref": "nixos-24.11",
|
||||
"repo": "nixpkgs",
|
||||
"type": "github"
|
||||
}
|
||||
},
|
||||
"nixpkgs-lib": {
|
||||
"locked": {
|
||||
"lastModified": 1717284937,
|
||||
|
@ -914,14 +889,14 @@
|
|||
},
|
||||
"nixpkgs-lib_5": {
|
||||
"locked": {
|
||||
"lastModified": 1725233747,
|
||||
"narHash": "sha256-Ss8QWLXdr2JCBPcYChJhz4xJm+h/xjl4G0c0XlP6a74=",
|
||||
"lastModified": 1738452942,
|
||||
"narHash": "sha256-vJzFZGaCpnmo7I6i416HaBLpC+hvcURh/BQwROcGIp8=",
|
||||
"type": "tarball",
|
||||
"url": "https://github.com/NixOS/nixpkgs/archive/356624c12086a18f2ea2825fed34523d60ccc4e3.tar.gz"
|
||||
"url": "https://github.com/NixOS/nixpkgs/archive/072a6db25e947df2f31aab9eccd0ab75d5b2da11.tar.gz"
|
||||
},
|
||||
"original": {
|
||||
"type": "tarball",
|
||||
"url": "https://github.com/NixOS/nixpkgs/archive/356624c12086a18f2ea2825fed34523d60ccc4e3.tar.gz"
|
||||
"url": "https://github.com/NixOS/nixpkgs/archive/072a6db25e947df2f31aab9eccd0ab75d5b2da11.tar.gz"
|
||||
}
|
||||
},
|
||||
"nixpkgs-lib_6": {
|
||||
|
@ -938,11 +913,11 @@
|
|||
},
|
||||
"nixpkgs-unstable-small": {
|
||||
"locked": {
|
||||
"lastModified": 1738758495,
|
||||
"narHash": "sha256-CZ8T4vP3ag2hwkpSZjatxJb55ouszvmnWw09qxGW9TU=",
|
||||
"lastModified": 1740848276,
|
||||
"narHash": "sha256-bYeI3FEs824X+MJYksKboNlmglehzplqzn+XvcojWMc=",
|
||||
"owner": "nixos",
|
||||
"repo": "nixpkgs",
|
||||
"rev": "ceaea203f3ae1787b1bd13f021f686391696fc5b",
|
||||
"rev": "e9b0ff70ddc61c42548501b0fafb86bb49cca858",
|
||||
"type": "github"
|
||||
},
|
||||
"original": {
|
||||
|
@ -1001,16 +976,16 @@
|
|||
},
|
||||
"nixpkgs_5": {
|
||||
"locked": {
|
||||
"lastModified": 1738758495,
|
||||
"narHash": "sha256-CZ8T4vP3ag2hwkpSZjatxJb55ouszvmnWw09qxGW9TU=",
|
||||
"lastModified": 1740791350,
|
||||
"narHash": "sha256-igS2Z4tVw5W/x3lCZeeadt0vcU9fxtetZ/RyrqsCRQ0=",
|
||||
"owner": "nixos",
|
||||
"repo": "nixpkgs",
|
||||
"rev": "ceaea203f3ae1787b1bd13f021f686391696fc5b",
|
||||
"rev": "199169a2135e6b864a888e89a2ace345703c025d",
|
||||
"type": "github"
|
||||
},
|
||||
"original": {
|
||||
"owner": "nixos",
|
||||
"ref": "nixos-unstable-small",
|
||||
"ref": "nixpkgs-unstable",
|
||||
"repo": "nixpkgs",
|
||||
"type": "github"
|
||||
}
|
||||
|
@ -1031,11 +1006,11 @@
|
|||
},
|
||||
"nixpkgs_7": {
|
||||
"locked": {
|
||||
"lastModified": 1738178544,
|
||||
"narHash": "sha256-UbM+zJFlze877N5j2YMLKYFX7t05VvmuNX2M0vJ7RfI=",
|
||||
"lastModified": 1740301968,
|
||||
"narHash": "sha256-eDAiNagpMExcLoSIgjdef2ZYyvjuy1VTF8r9OZXCMGc=",
|
||||
"owner": "NixOS",
|
||||
"repo": "nixpkgs",
|
||||
"rev": "975ac0ab33ee7fea64842047a96f5d679d90913c",
|
||||
"rev": "b7fe81518095c48a8ba94fc7cfe5c0fc8370851b",
|
||||
"type": "github"
|
||||
},
|
||||
"original": {
|
||||
|
@ -1045,6 +1020,61 @@
|
|||
"type": "github"
|
||||
}
|
||||
},
|
||||
"nixpkgs_8": {
|
||||
"locked": {
|
||||
"lastModified": 1740367490,
|
||||
"narHash": "sha256-WGaHVAjcrv+Cun7zPlI41SerRtfknGQap281+AakSAw=",
|
||||
"owner": "NixOS",
|
||||
"repo": "nixpkgs",
|
||||
"rev": "0196c0175e9191c474c26ab5548db27ef5d34b05",
|
||||
"type": "github"
|
||||
},
|
||||
"original": {
|
||||
"owner": "NixOS",
|
||||
"ref": "nixos-unstable",
|
||||
"repo": "nixpkgs",
|
||||
"type": "github"
|
||||
}
|
||||
},
|
||||
"nixpkgs_9": {
|
||||
"locked": {
|
||||
"lastModified": 1722073938,
|
||||
"narHash": "sha256-OpX0StkL8vpXyWOGUD6G+MA26wAXK6SpT94kLJXo6B4=",
|
||||
"owner": "NixOS",
|
||||
"repo": "nixpkgs",
|
||||
"rev": "e36e9f57337d0ff0cf77aceb58af4c805472bfae",
|
||||
"type": "github"
|
||||
},
|
||||
"original": {
|
||||
"owner": "NixOS",
|
||||
"ref": "nixpkgs-unstable",
|
||||
"repo": "nixpkgs",
|
||||
"type": "github"
|
||||
}
|
||||
},
|
||||
"nur": {
|
||||
"inputs": {
|
||||
"flake-parts": "flake-parts_7",
|
||||
"nixpkgs": [
|
||||
"stylix",
|
||||
"nixpkgs"
|
||||
],
|
||||
"treefmt-nix": "treefmt-nix_6"
|
||||
},
|
||||
"locked": {
|
||||
"lastModified": 1740408283,
|
||||
"narHash": "sha256-2xECnhgF3MU9YjmvOkrRp8wRFo2OjjewgCtlfckhL5s=",
|
||||
"owner": "nix-community",
|
||||
"repo": "NUR",
|
||||
"rev": "496a4a11162bdffb9a7b258942de138873f019f7",
|
||||
"type": "github"
|
||||
},
|
||||
"original": {
|
||||
"owner": "nix-community",
|
||||
"repo": "NUR",
|
||||
"type": "github"
|
||||
}
|
||||
},
|
||||
"permown": {
|
||||
"inputs": {
|
||||
"nixpkgs": [
|
||||
|
@ -1134,21 +1164,6 @@
|
|||
"url": "ssh://forgejo@git.ingolf-wagner.de:2222/palo/nixos-private-parts.git"
|
||||
}
|
||||
},
|
||||
"retiolum": {
|
||||
"locked": {
|
||||
"lastModified": 1737987273,
|
||||
"narHash": "sha256-WQCLoDbthUO5PcdYDBxZZQgpQbEXab50EcwChkukxN4=",
|
||||
"owner": "Mic92",
|
||||
"repo": "retiolum",
|
||||
"rev": "514fe96610f745435b89355822691b1961dc4857",
|
||||
"type": "github"
|
||||
},
|
||||
"original": {
|
||||
"owner": "Mic92",
|
||||
"repo": "retiolum",
|
||||
"type": "github"
|
||||
}
|
||||
},
|
||||
"root": {
|
||||
"inputs": {
|
||||
"clan-core": "clan-core",
|
||||
|
@ -1163,21 +1178,16 @@
|
|||
"nixos-anywhere": "nixos-anywhere",
|
||||
"nixos-hardware": "nixos-hardware",
|
||||
"nixpkgs": "nixpkgs_5",
|
||||
"nixpkgs-legacy_2211": "nixpkgs-legacy_2211",
|
||||
"nixpkgs-legacy_2311": "nixpkgs-legacy_2311",
|
||||
"nixpkgs-legacy_2405": "nixpkgs-legacy_2405",
|
||||
"nixpkgs-legacy_2411": "nixpkgs-legacy_2411",
|
||||
"nixpkgs-unstable-small": "nixpkgs-unstable-small",
|
||||
"permown": "permown",
|
||||
"polygon-art": "polygon-art",
|
||||
"private-parts": "private-parts",
|
||||
"retiolum": "retiolum",
|
||||
"share-http": "share-http",
|
||||
"srvos": "srvos",
|
||||
"stylix": "stylix",
|
||||
"taskwarrior": "taskwarrior",
|
||||
"telemetry": "telemetry",
|
||||
"treefmt-nix": "treefmt-nix_8"
|
||||
"treefmt-nix": "treefmt-nix_9"
|
||||
}
|
||||
},
|
||||
"share-http": {
|
||||
|
@ -1230,11 +1240,11 @@
|
|||
"nixpkgs": "nixpkgs_7"
|
||||
},
|
||||
"locked": {
|
||||
"lastModified": 1738198321,
|
||||
"narHash": "sha256-lhnHBXO9Y8xEn92JqxjancdL8Gh16ONuxZp60iZfmX4=",
|
||||
"lastModified": 1740358604,
|
||||
"narHash": "sha256-Wi87Dx5j8JH+ETlU0zrPSAe7zD2wQkEY6DtITCeyOdI=",
|
||||
"owner": "nix-community",
|
||||
"repo": "srvos",
|
||||
"rev": "7d5a4aaadac9ff63f9ed4347df95175aceee5079",
|
||||
"rev": "b3065811ae1c822b856af8a254e07703172a0e76",
|
||||
"type": "github"
|
||||
},
|
||||
"original": {
|
||||
|
@ -1260,18 +1270,20 @@
|
|||
"nixpkgs": [
|
||||
"nixpkgs"
|
||||
],
|
||||
"nur": "nur",
|
||||
"systems": "systems_3",
|
||||
"tinted-foot": "tinted-foot",
|
||||
"tinted-kitty": "tinted-kitty",
|
||||
"tinted-schemes": "tinted-schemes",
|
||||
"tinted-tmux": "tinted-tmux",
|
||||
"tinted-zed": "tinted-zed"
|
||||
},
|
||||
"locked": {
|
||||
"lastModified": 1738611626,
|
||||
"narHash": "sha256-IgjqlYPaS8Bg+jc6a691w27XDFhBeM7gkP4eDcR2EBs=",
|
||||
"lastModified": 1740769934,
|
||||
"narHash": "sha256-iyxUwII/NQNClT77VqQiDpaXJz1r0Z8tNVxgY64mLak=",
|
||||
"owner": "danth",
|
||||
"repo": "stylix",
|
||||
"rev": "d513f59da5856978c363d2f82103f708f4a6024d",
|
||||
"rev": "de4ee5899042801b62f988687acd454d4d411075",
|
||||
"type": "github"
|
||||
},
|
||||
"original": {
|
||||
|
@ -1364,19 +1376,17 @@
|
|||
},
|
||||
"taskwarrior": {
|
||||
"inputs": {
|
||||
"flake-parts": "flake-parts_7",
|
||||
"nixpkgs": [
|
||||
"nixpkgs"
|
||||
],
|
||||
"flake-parts": "flake-parts_8",
|
||||
"nixpkgs": "nixpkgs_8",
|
||||
"taskshell": "taskshell",
|
||||
"treefmt-nix": "treefmt-nix_6"
|
||||
"treefmt-nix": "treefmt-nix_7"
|
||||
},
|
||||
"locked": {
|
||||
"lastModified": 1727417586,
|
||||
"narHash": "sha256-z3ahlvbUWENgrvatJYd7FtPL0OoV4E+zNZiBzRx9S1E=",
|
||||
"lastModified": 1740648759,
|
||||
"narHash": "sha256-sIgoU5sXAISeQwvpkW9f8h4uKmTT1okuDEqIihYo5zw=",
|
||||
"owner": "mrvandalo",
|
||||
"repo": "taskwarrior-flake",
|
||||
"rev": "9433b3b1c4afb18c554d067fadf37d979b129b09",
|
||||
"rev": "927ebf78a525272616028cf8e9973bfdc0c5a0cc",
|
||||
"type": "github"
|
||||
},
|
||||
"original": {
|
||||
|
@ -1387,18 +1397,19 @@
|
|||
},
|
||||
"telemetry": {
|
||||
"inputs": {
|
||||
"flake-parts": "flake-parts_8",
|
||||
"devshell": "devshell_3",
|
||||
"flake-parts": "flake-parts_9",
|
||||
"nixpkgs": [
|
||||
"nixpkgs"
|
||||
],
|
||||
"treefmt-nix": "treefmt-nix_7"
|
||||
"treefmt-nix": "treefmt-nix_8"
|
||||
},
|
||||
"locked": {
|
||||
"lastModified": 1738566582,
|
||||
"narHash": "sha256-Sl+0RRf9DpxuBfiXNZkJIfDreRE1JoABhvXVGWNBL+k=",
|
||||
"lastModified": 1740624189,
|
||||
"narHash": "sha256-GET3URhKXO5uq62tAPr9xSe6fSco1m0+p1UvK9iAukM=",
|
||||
"owner": "mrvandalo",
|
||||
"repo": "nixos-telemetry",
|
||||
"rev": "d5bb7a31de3e826e43919897b486649fcdc3fb9a",
|
||||
"rev": "bb8713fc2cd19c316c051fa1e643a36531c12364",
|
||||
"type": "github"
|
||||
},
|
||||
"original": {
|
||||
|
@ -1441,14 +1452,30 @@
|
|||
"type": "github"
|
||||
}
|
||||
},
|
||||
"tinted-schemes": {
|
||||
"flake": false,
|
||||
"locked": {
|
||||
"lastModified": 1740351358,
|
||||
"narHash": "sha256-Hdk850xgAd3DL8KX0AbyU7tC834d3Lej1jOo3duWiOA=",
|
||||
"owner": "tinted-theming",
|
||||
"repo": "schemes",
|
||||
"rev": "a1bc2bd89e693e7e3f5764cfe8114e2ae150e184",
|
||||
"type": "github"
|
||||
},
|
||||
"original": {
|
||||
"owner": "tinted-theming",
|
||||
"repo": "schemes",
|
||||
"type": "github"
|
||||
}
|
||||
},
|
||||
"tinted-tmux": {
|
||||
"flake": false,
|
||||
"locked": {
|
||||
"lastModified": 1735737224,
|
||||
"narHash": "sha256-FO2hRBkZsjlIRqzNHCPc/52yxg11kHGA8MEtSun9RwE=",
|
||||
"lastModified": 1740272597,
|
||||
"narHash": "sha256-/etfUV3HzAaLW3RSJVwUaW8ULbMn3v6wbTlXSKbcoWQ=",
|
||||
"owner": "tinted-theming",
|
||||
"repo": "tinted-tmux",
|
||||
"rev": "aead506a9930c717ebf81cc83a2126e9ca08fa64",
|
||||
"rev": "b6c7f46c8718cc484f2db8b485b06e2a98304cd0",
|
||||
"type": "github"
|
||||
},
|
||||
"original": {
|
||||
|
@ -1481,11 +1508,11 @@
|
|||
]
|
||||
},
|
||||
"locked": {
|
||||
"lastModified": 1738953846,
|
||||
"narHash": "sha256-yrK3Hjcr8F7qS/j2F+r7C7o010eVWWlm4T1PrbKBOxQ=",
|
||||
"lastModified": 1739829690,
|
||||
"narHash": "sha256-mL1szCeIsjh6Khn3nH2cYtwO5YXG6gBiTw1A30iGeDU=",
|
||||
"owner": "numtide",
|
||||
"repo": "treefmt-nix",
|
||||
"rev": "4f09b473c936d41582dd744e19f34ec27592c5fd",
|
||||
"rev": "3d0579f5cc93436052d94b73925b48973a104204",
|
||||
"type": "github"
|
||||
},
|
||||
"original": {
|
||||
|
@ -1581,16 +1608,17 @@
|
|||
"treefmt-nix_6": {
|
||||
"inputs": {
|
||||
"nixpkgs": [
|
||||
"taskwarrior",
|
||||
"stylix",
|
||||
"nur",
|
||||
"nixpkgs"
|
||||
]
|
||||
},
|
||||
"locked": {
|
||||
"lastModified": 1727252110,
|
||||
"narHash": "sha256-3O7RWiXpvqBcCl84Mvqa8dXudZ1Bol1ubNdSmQt7nF4=",
|
||||
"lastModified": 1733222881,
|
||||
"narHash": "sha256-JIPcz1PrpXUCbaccEnrcUS8jjEb/1vJbZz5KkobyFdM=",
|
||||
"owner": "numtide",
|
||||
"repo": "treefmt-nix",
|
||||
"rev": "1bff2ba6ec22bc90e9ad3f7e94cca0d37870afa3",
|
||||
"rev": "49717b5af6f80172275d47a418c9719a31a78b53",
|
||||
"type": "github"
|
||||
},
|
||||
"original": {
|
||||
|
@ -1600,6 +1628,27 @@
|
|||
}
|
||||
},
|
||||
"treefmt-nix_7": {
|
||||
"inputs": {
|
||||
"nixpkgs": [
|
||||
"taskwarrior",
|
||||
"nixpkgs"
|
||||
]
|
||||
},
|
||||
"locked": {
|
||||
"lastModified": 1739829690,
|
||||
"narHash": "sha256-mL1szCeIsjh6Khn3nH2cYtwO5YXG6gBiTw1A30iGeDU=",
|
||||
"owner": "numtide",
|
||||
"repo": "treefmt-nix",
|
||||
"rev": "3d0579f5cc93436052d94b73925b48973a104204",
|
||||
"type": "github"
|
||||
},
|
||||
"original": {
|
||||
"owner": "numtide",
|
||||
"repo": "treefmt-nix",
|
||||
"type": "github"
|
||||
}
|
||||
},
|
||||
"treefmt-nix_8": {
|
||||
"inputs": {
|
||||
"nixpkgs": [
|
||||
"telemetry",
|
||||
|
@ -1620,18 +1669,18 @@
|
|||
"type": "github"
|
||||
}
|
||||
},
|
||||
"treefmt-nix_8": {
|
||||
"treefmt-nix_9": {
|
||||
"inputs": {
|
||||
"nixpkgs": [
|
||||
"nixpkgs"
|
||||
]
|
||||
},
|
||||
"locked": {
|
||||
"lastModified": 1738680491,
|
||||
"narHash": "sha256-8X7tR3kFGkE7WEF5EXVkt4apgaN85oHZdoTGutCFs6I=",
|
||||
"lastModified": 1739829690,
|
||||
"narHash": "sha256-mL1szCeIsjh6Khn3nH2cYtwO5YXG6gBiTw1A30iGeDU=",
|
||||
"owner": "numtide",
|
||||
"repo": "treefmt-nix",
|
||||
"rev": "64dbb922d51a42c0ced6a7668ca008dded61c483",
|
||||
"rev": "3d0579f5cc93436052d94b73925b48973a104204",
|
||||
"type": "github"
|
||||
},
|
||||
"original": {
|
||||
|
|
52
flake.nix
52
flake.nix
|
@ -22,26 +22,20 @@
|
|||
nix-topology.url = "github:oddlama/nix-topology";
|
||||
nixos-anywhere.url = "github:nix-community/nixos-anywhere";
|
||||
nixos-hardware.url = "github:nixos/nixos-hardware";
|
||||
nixpkgs-legacy_2211.url = "github:nixos/nixpkgs/nixos-22.11";
|
||||
nixpkgs-legacy_2311.url = "github:nixos/nixpkgs/nixos-23.11";
|
||||
nixpkgs-legacy_2405.url = "github:nixos/nixpkgs/nixos-24.05";
|
||||
nixpkgs-legacy_2411.url = "github:nixos/nixpkgs/nixos-24.11";
|
||||
nixpkgs-unstable-small.url = "github:nixos/nixpkgs/nixos-unstable-small";
|
||||
nixpkgs.url = "github:nixos/nixpkgs/nixos-unstable-small";
|
||||
nixpkgs.url = "github:nixos/nixpkgs/nixpkgs-unstable";
|
||||
permown.inputs.nixpkgs.follows = "nixpkgs";
|
||||
permown.url = "github:mrVanDalo/module.permown";
|
||||
polygon-art.url = "git+https://git.ingolf-wagner.de/palo/polygon-art.git";
|
||||
private-parts.inputs.nixpkgs.follows = "nixpkgs"; # only private input
|
||||
private-parts.url = "git+ssh://forgejo@git.ingolf-wagner.de:2222/palo/nixos-private-parts.git?ref=main";
|
||||
#private-parts.url = "git+file:///home/palo/dev/nixos/nixos-private-parts";
|
||||
retiolum.url = "github:Mic92/retiolum";
|
||||
share-http.inputs.nixpkgs.follows = "nixpkgs"; # only private input
|
||||
share-http.url = "git+ssh://forgejo@git.ingolf-wagner.de:2222/palo/share-host.git?ref=main";
|
||||
srvos.url = "github:nix-community/srvos";
|
||||
stylix.inputs.home-manager.follows = "home-manager";
|
||||
stylix.inputs.nixpkgs.follows = "nixpkgs";
|
||||
stylix.url = "github:danth/stylix";
|
||||
taskwarrior.inputs.nixpkgs.follows = "nixpkgs";
|
||||
taskwarrior.url = "github:mrvandalo/taskwarrior-flake";
|
||||
#taskwarrior.url = "git+file:///home/palo/dev/nixos/taskwarrior-flake";
|
||||
telemetry.inputs.nixpkgs.follows = "nixpkgs";
|
||||
|
@ -73,15 +67,10 @@
|
|||
nixos-anywhere,
|
||||
nixos-hardware,
|
||||
nixpkgs,
|
||||
nixpkgs-legacy_2211,
|
||||
nixpkgs-legacy_2311,
|
||||
nixpkgs-legacy_2405,
|
||||
nixpkgs-legacy_2411,
|
||||
nixpkgs-unstable-small,
|
||||
permown,
|
||||
polygon-art,
|
||||
private-parts,
|
||||
retiolum,
|
||||
self,
|
||||
share-http,
|
||||
srvos,
|
||||
|
@ -125,24 +114,6 @@
|
|||
inherit allowUnfree permittedInsecurePackages;
|
||||
};
|
||||
};
|
||||
legacy_2211 = import nixpkgs-legacy_2211 {
|
||||
inherit system;
|
||||
config = {
|
||||
inherit allowUnfree permittedInsecurePackages;
|
||||
};
|
||||
};
|
||||
legacy_2311 = import nixpkgs-legacy_2311 {
|
||||
inherit system;
|
||||
config = {
|
||||
inherit allowUnfree permittedInsecurePackages;
|
||||
};
|
||||
};
|
||||
legacy_2405 = import nixpkgs-legacy_2405 {
|
||||
inherit system;
|
||||
config = {
|
||||
inherit allowUnfree permittedInsecurePackages;
|
||||
};
|
||||
};
|
||||
polygon-art = polygon-art.packages.${system};
|
||||
landingpage = landingpage.packages.${system}.plain;
|
||||
share-via-http = share-http.packages.${system}.default;
|
||||
|
@ -151,6 +122,7 @@
|
|||
tasksh
|
||||
taskwarrior-hooks
|
||||
;
|
||||
healthchecks = self.packages.${system}.healthchecks;
|
||||
inherit (self.packages.${system})
|
||||
otpmenu
|
||||
nsxiv
|
||||
|
@ -301,13 +273,15 @@
|
|||
# inputs.stylix.nixosModules.stylix # fixme: not working
|
||||
permown.nixosModules.permown
|
||||
home-manager.nixosModules.home-manager
|
||||
# retiolum.nixosModules.retiolum # fixme: not working
|
||||
];
|
||||
|
||||
boot.loader.systemd-boot.configurationLimit = lib.mkDefault 10;
|
||||
boot.loader.generic-extlinux-compatible.configurationLimit = lib.mkDefault 10;
|
||||
boot.loader.grub.configurationLimit = lib.mkDefault 10;
|
||||
environment.systemPackages = [ pkgs.systemctl-find-service-config ];
|
||||
environment.systemPackages = [
|
||||
pkgs.systemctl-find-service-config
|
||||
pkgs.healthchecks
|
||||
];
|
||||
}
|
||||
)
|
||||
# My Structure
|
||||
|
@ -315,12 +289,6 @@
|
|||
./features
|
||||
./modules # todo : spread this across features and components
|
||||
#./system/all # todo : spread this across features and components
|
||||
(
|
||||
{ lib, pkgs, ... }:
|
||||
{
|
||||
telemetry.netdata.enable = false;
|
||||
}
|
||||
)
|
||||
|
||||
# some modules I always use
|
||||
telemetry.nixosModules.telemetry
|
||||
|
@ -353,6 +321,8 @@
|
|||
# https://github.com/danth/stylix/issues/543
|
||||
stylix.targets.hyprpaper.enable = lib.mkForce false;
|
||||
stylix.targets.hyprland.enable = lib.mkForce false;
|
||||
stylix.targets.swaylock.enable = lib.mkForce false;
|
||||
stylix.targets.qt.platform = "qtct";
|
||||
|
||||
# running into strange problems
|
||||
# fixme: remove if possible
|
||||
|
@ -373,10 +343,6 @@
|
|||
name = "JetBrains Mono";
|
||||
};
|
||||
emoji = config.stylix.fonts.monospace;
|
||||
# emoji = {
|
||||
# package = pkgs.noto-fonts-emoji;
|
||||
# name = "Noto Color Emoji";
|
||||
# };
|
||||
sizes.popups = 15;
|
||||
};
|
||||
};
|
||||
|
@ -434,7 +400,6 @@
|
|||
healthchecks.nixosModules.default
|
||||
zerotierModules
|
||||
nixos-hardware.nixosModules.framework-13th-gen-intel
|
||||
retiolum.nixosModules.retiolum
|
||||
private-parts.nixosModules.cherry
|
||||
homeManagerModules
|
||||
stylixModules
|
||||
|
@ -467,7 +432,6 @@
|
|||
zerotierControllerModule
|
||||
homeManagerModules
|
||||
stylixModules
|
||||
retiolum.nixosModules.retiolum
|
||||
private-parts.nixosModules.chungus
|
||||
{
|
||||
home-manager.users.mainUser = import ./homes/palo;
|
||||
|
|
|
@ -1,13 +1,14 @@
|
|||
{ lib, ... }:
|
||||
{
|
||||
|
||||
imports = [
|
||||
./editor.nix
|
||||
./network.nix
|
||||
#./oh-my-posh
|
||||
./starship-rs
|
||||
./packages.nix
|
||||
./terminal.nix
|
||||
./zfs.nix
|
||||
];
|
||||
|
||||
options.gui.enable = lib.mkEnableOption "should GUI packages be anabled?";
|
||||
}
|
||||
|
|
|
@ -4,7 +4,6 @@
|
|||
enable = true;
|
||||
defaultEditor = lib.mkDefault true;
|
||||
};
|
||||
programs.helix = {
|
||||
enable = true;
|
||||
};
|
||||
# enable = true;
|
||||
#};
|
||||
}
|
||||
|
|
|
@ -1,15 +0,0 @@
|
|||
{
|
||||
pkgs,
|
||||
config,
|
||||
lib,
|
||||
...
|
||||
}:
|
||||
with lib;
|
||||
{
|
||||
programs.oh-my-posh = {
|
||||
enable = true;
|
||||
# https://ohmyposh.dev/docs/themes
|
||||
#useTheme = "gmay"; # ganz nice, aber farben sind ein bisl schrill
|
||||
settings = builtins.fromJSON (builtins.readFile ./gmay.json);
|
||||
};
|
||||
}
|
|
@ -1,121 +0,0 @@
|
|||
{
|
||||
"$schema": "https://raw.githubusercontent.com/JanDeDobbeleer/oh-my-posh/main/themes/schema.json",
|
||||
"blocks": [
|
||||
{
|
||||
"alignment": "left",
|
||||
"segments": [
|
||||
{
|
||||
"background": "#076678",
|
||||
"foreground": "#EBDBB2",
|
||||
"leading_diamond": "\ue0b6",
|
||||
"style": "diamond",
|
||||
"template": " {{ if .WSL }}WSL at {{ end }}{{.Icon}} ",
|
||||
"type": "os"
|
||||
},
|
||||
{
|
||||
"background": "#AF3A03",
|
||||
"foreground": "#EBDBB2",
|
||||
"powerline_symbol": "\ue0b0",
|
||||
"style": "powerline",
|
||||
"template": " \uf0e7 ",
|
||||
"type": "root"
|
||||
},
|
||||
{
|
||||
"background": "#076678",
|
||||
"foreground": "#EBDBB2",
|
||||
"powerline_symbol": "\ue0b0",
|
||||
"style": "powerline",
|
||||
"template": " {{ if .SSHSession }}\ueba9 {{ end }}{{ .UserName }}@{{ .HostName }} ",
|
||||
"type": "session"
|
||||
},
|
||||
{
|
||||
"background": "#B57614",
|
||||
"foreground": "#EBDBB2",
|
||||
"powerline_symbol": "\ue0b0",
|
||||
"properties": {
|
||||
"style": "full"
|
||||
},
|
||||
"style": "powerline",
|
||||
"template": " \ue5ff {{ .Path }} ",
|
||||
"type": "path"
|
||||
},
|
||||
{
|
||||
"background": "#79740E",
|
||||
"foreground": "#EBDBB2",
|
||||
"powerline_symbol": "\ue0b0",
|
||||
"properties": {
|
||||
"time_format": "2006-01-02 15:04:05"
|
||||
},
|
||||
"style": "powerline",
|
||||
"template": " {{ .CurrentDate | date .Format }} ",
|
||||
"type": "time"
|
||||
},
|
||||
{
|
||||
"type": "project",
|
||||
"style": "powerline",
|
||||
"powerline_symbol": "",
|
||||
"foreground": "#193549",
|
||||
"background": "#ffeb3b",
|
||||
"template": " {{ if .Error }}{{ .Error }}{{ else }}{{ if .Version }} {{.Version}}{{ end }} {{ if .Name }}{{ .Name }}{{ end }}{{ end }} "
|
||||
},
|
||||
{
|
||||
"type": "git",
|
||||
"style": "powerline",
|
||||
"powerline_symbol": "",
|
||||
"background": "#427b58",
|
||||
"foreground": "#EBDBB2",
|
||||
"background_templates": [
|
||||
"{{ if or (.Working.Changed) (.Staging.Changed) }}#8f3f71{{ end }}",
|
||||
"{{ if and (gt .Ahead 0) (gt .Behind 0) }}#076678{{ end }}",
|
||||
"{{ if gt .Ahead 0 }}#076678{{ end }}",
|
||||
"{{ if gt .Behind 0 }}#076678{{ end }}"
|
||||
],
|
||||
"template": "{{ .UpstreamIcon }}{{ .HEAD }}{{if .BranchStatus }} {{ .BranchStatus }}{{ end }}{{ if .Working.Changed }} {{ .Working.String }}{{ end }}{{ if and (.Working.Changed) (.Staging.Changed) }} |{{ end }}{{ if .Staging.Changed }} {{ .Staging.String }}{{ end }}{{ if gt .StashCount 0 }} {{ .StashCount }}{{ end }}",
|
||||
"properties": {
|
||||
"fetch_status": true,
|
||||
"fetch_upstream_icon": true,
|
||||
"untracked_modes": {
|
||||
"/Users/user/Projects/oh-my-posh/": "no"
|
||||
},
|
||||
"source": "cli",
|
||||
"mapped_branches": {
|
||||
"feat/*": "🚀 ",
|
||||
"bug/*": "🐛 "
|
||||
}
|
||||
}
|
||||
},
|
||||
{
|
||||
"background": "#427B58",
|
||||
"background_templates": [
|
||||
"{{ if gt .Code 0 }}#9D0006{{ end }}"
|
||||
],
|
||||
"foreground": "#EBDBB2",
|
||||
"leading_diamond": "<transparent,background>\ue0b0</>",
|
||||
"properties": {
|
||||
"always_enabled": true
|
||||
},
|
||||
"style": "diamond",
|
||||
"template": " \ueb05 ",
|
||||
"trailing_diamond": "\ue0b4",
|
||||
"type": "status"
|
||||
}
|
||||
],
|
||||
"type": "prompt"
|
||||
},
|
||||
{
|
||||
"alignment": "left",
|
||||
"newline": true,
|
||||
"segments": [
|
||||
{
|
||||
"foreground": "#076678",
|
||||
"style": "plain",
|
||||
"template": "\uf0a9 ",
|
||||
"type": "text"
|
||||
}
|
||||
],
|
||||
"type": "prompt"
|
||||
}
|
||||
],
|
||||
"final_space": true,
|
||||
"version": 2
|
||||
}
|
|
@ -1,69 +0,0 @@
|
|||
{
|
||||
"$schema": "https://raw.githubusercontent.com/JanDeDobbeleer/oh-my-posh/main/themes/schema.json",
|
||||
"blocks": [
|
||||
{
|
||||
"alignment": "left",
|
||||
"segments": [
|
||||
{
|
||||
"background": "#3A3A3A",
|
||||
"foreground": "#ffffff",
|
||||
"style": "powerline",
|
||||
"template": "{{ if .WSL }}WSL at{{ end }} {{.Icon}} ",
|
||||
"type": "os"
|
||||
},
|
||||
{
|
||||
"background": "#fbf1c7",
|
||||
"background_templates": [
|
||||
"{{ if .Root }}#af3a03{{ end }}"
|
||||
],
|
||||
"foreground": "#282828",
|
||||
"foreground_templates": [
|
||||
"{{ if .Root }}#fbf1c7{{ end }}"
|
||||
],
|
||||
"powerline_symbol": "\ue0b0",
|
||||
"style": "powerline",
|
||||
"template": " {{ if .SSHSession }} {{ end }}{{ .HostName }} ",
|
||||
"type": "session"
|
||||
},
|
||||
{
|
||||
"background": "#458588",
|
||||
"foreground": "#282828",
|
||||
"powerline_symbol": "\ue0b0",
|
||||
"properties": {
|
||||
"style": "full"
|
||||
},
|
||||
"style": "powerline",
|
||||
"template": " {{ .Path }} ",
|
||||
"type": "path"
|
||||
},
|
||||
{
|
||||
"background": "#98971A",
|
||||
"background_templates": [
|
||||
"{{ if or (.Working.Changed) (.Staging.Changed) }}#FF9248{{ end }}",
|
||||
"{{ if and (gt .Ahead 0) (gt .Behind 0) }}#ff4500{{ end }}",
|
||||
"{{ if gt .Ahead 0 }}#B388FF{{ end }}",
|
||||
"{{ if gt .Behind 0 }}#B388FF{{ end }}"
|
||||
],
|
||||
"foreground": "#282828",
|
||||
"leading_diamond": "\ue0b6",
|
||||
"powerline_symbol": "\ue0b0",
|
||||
"properties": {
|
||||
"branch_max_length": 25,
|
||||
"fetch_stash_count": true,
|
||||
"fetch_status": true,
|
||||
"branch_icon": "\uE0A0 ",
|
||||
"branch_identical_icon": "\u25CF"
|
||||
},
|
||||
"style": "powerline",
|
||||
"template": " {{ .HEAD }}{{if .BranchStatus }} {{ .BranchStatus }}{{ end }}{{ if .Working.Changed }} \uf044 {{ .Working.String }}{{ end }}{{ if and (.Working.Changed) (.Staging.Changed) }} |{{ end }}{{ if .Staging.Changed }} \uf046 {{ .Staging.String }}{{ end }}{{ if gt .StashCount 0 }} \ueb4b {{ .StashCount }}{{ end }} ",
|
||||
"trailing_diamond": "\ue0b4",
|
||||
"type": "git"
|
||||
}
|
||||
],
|
||||
"type": "prompt"
|
||||
}
|
||||
],
|
||||
"console_title_template": "{{ .Folder }}",
|
||||
"final_space": true,
|
||||
"version": 2
|
||||
}
|
|
@ -37,29 +37,4 @@
|
|||
enableZshIntegration = true;
|
||||
};
|
||||
|
||||
# provide better `Ctrl+r` command in terminal
|
||||
programs.atuin = {
|
||||
enable = true;
|
||||
enableBashIntegration = true;
|
||||
enableZshIntegration = true;
|
||||
#package = pkgs.atuin;
|
||||
package = pkgs.legacy_2405.atuin.overrideAttrs (_old: {
|
||||
# as cursed as doing mitigations=off in the kernel command line
|
||||
patches = [ "${assets}/0001-make-atuin-on-zfs-fast-again.patch" ];
|
||||
});
|
||||
settings = {
|
||||
auto_sync = true;
|
||||
sync_frequency = "5m";
|
||||
sync_address = "http://chungus.private:8888";
|
||||
search_mode = "fuzzy";
|
||||
style = "full";
|
||||
inline_height = 20;
|
||||
keymap_mode = "vim-normal";
|
||||
|
||||
# With workspace filtering enabled, Atuin will filter for commands executed
|
||||
# in any directory within a git repository tree.
|
||||
workspaces = true;
|
||||
|
||||
};
|
||||
};
|
||||
}
|
||||
|
|
28
homes/palo/atuin.nix
Normal file
28
homes/palo/atuin.nix
Normal file
|
@ -0,0 +1,28 @@
|
|||
{
|
||||
|
||||
# provide better `Ctrl+r` command in terminal
|
||||
programs.atuin = {
|
||||
enable = true;
|
||||
enableBashIntegration = true;
|
||||
enableZshIntegration = true;
|
||||
daemon.enable = true;
|
||||
settings = {
|
||||
auto_sync = true;
|
||||
sync_frequency = "5m";
|
||||
sync_address = "http://chungus.private:8888";
|
||||
search_mode = "fuzzy";
|
||||
style = "full";
|
||||
inline_height = 20;
|
||||
keymap_mode = "vim-normal";
|
||||
|
||||
# because the daemon can't remember my mode (with Ctrl-r)
|
||||
filter_mode = "directory";
|
||||
|
||||
# With workspace filtering enabled, Atuin will filter for commands executed
|
||||
# in any directory within a git repository tree.
|
||||
workspaces = true;
|
||||
|
||||
};
|
||||
};
|
||||
|
||||
}
|
|
@ -3,6 +3,7 @@
|
|||
|
||||
imports = [
|
||||
../common
|
||||
./atuin.nix
|
||||
./git.nix
|
||||
./gpg.nix
|
||||
./gui
|
||||
|
@ -12,7 +13,7 @@
|
|||
./stylix.nix
|
||||
./taskwarrior.nix
|
||||
./tmux.nix
|
||||
./zellij.nix
|
||||
#./zellij.nix
|
||||
];
|
||||
|
||||
home.stateVersion = "22.11";
|
||||
|
|
|
@ -14,6 +14,7 @@ with pkgs;
|
|||
"*.swp"
|
||||
"*~"
|
||||
".idea"
|
||||
"*.iml"
|
||||
".*penis.*"
|
||||
"result"
|
||||
".envrc"
|
||||
|
|
|
@ -87,36 +87,37 @@ in
|
|||
format = "$icon $percentage $time";
|
||||
}
|
||||
{ block = "uptime"; }
|
||||
{
|
||||
block = "taskwarrior";
|
||||
interval = 60;
|
||||
format = " $icon $count.eng(w:3) todo ";
|
||||
format_singular = " $icon 1 task ";
|
||||
format_everything_done = "";
|
||||
warning_threshold = 10;
|
||||
critical_threshold = 20;
|
||||
filters = [
|
||||
{
|
||||
name = "active";
|
||||
filter = "+PENDING and ( +ACTIVE or +DUETODAY or +TODAY or +OVERDUE )";
|
||||
}
|
||||
];
|
||||
}
|
||||
{
|
||||
block = "taskwarrior";
|
||||
interval = 60;
|
||||
format = " $icon $count.eng(w:2) ";
|
||||
format_singular = " $icon 1 task ";
|
||||
format_everything_done = "";
|
||||
warning_threshold = 3;
|
||||
critical_threshold = 5;
|
||||
filters = [
|
||||
{
|
||||
name = "started";
|
||||
filter = "+PENDING and +ACTIVE";
|
||||
}
|
||||
];
|
||||
}
|
||||
# interferes with `bugwarrior pull`
|
||||
# {
|
||||
# block = "taskwarrior";
|
||||
# interval = 60;
|
||||
# format = " $icon $count.eng(w:3) todo ";
|
||||
# format_singular = " $icon 1 task ";
|
||||
# format_everything_done = "";
|
||||
# warning_threshold = 10;
|
||||
# critical_threshold = 20;
|
||||
# filters = [
|
||||
# {
|
||||
# name = "active";
|
||||
# filter = "+PENDING and ( +ACTIVE or +DUETODAY or +TODAY or +OVERDUE )";
|
||||
# }
|
||||
# ];
|
||||
# }
|
||||
# {
|
||||
# block = "taskwarrior";
|
||||
# interval = 60;
|
||||
# format = " $icon $count.eng(w:2) ";
|
||||
# format_singular = " $icon 1 task ";
|
||||
# format_everything_done = "";
|
||||
# warning_threshold = 3;
|
||||
# critical_threshold = 5;
|
||||
# filters = [
|
||||
# {
|
||||
# name = "started";
|
||||
# filter = "+PENDING and +ACTIVE";
|
||||
# }
|
||||
# ];
|
||||
# }
|
||||
{
|
||||
block = "time";
|
||||
interval = 60;
|
||||
|
|
|
@ -18,7 +18,7 @@ with lib;
|
|||
jetbrains.idea-ultimate
|
||||
vscode
|
||||
|
||||
zed-editor
|
||||
#zed-editor
|
||||
|
||||
# minicom # for flipper zero
|
||||
|
||||
|
@ -47,8 +47,6 @@ with lib;
|
|||
termtosvg
|
||||
vhs
|
||||
|
||||
#legacy_2311.blockdiag
|
||||
|
||||
# nomad
|
||||
#nomad
|
||||
#vault
|
||||
|
@ -116,6 +114,7 @@ with lib;
|
|||
yq-go
|
||||
gojq
|
||||
jq
|
||||
fx
|
||||
ijq
|
||||
miller
|
||||
|
||||
|
|
|
@ -6,6 +6,22 @@
|
|||
}:
|
||||
with pkgs;
|
||||
with lib;
|
||||
let
|
||||
use_override = false;
|
||||
bambu-studio =
|
||||
if use_override then
|
||||
pkgs.bambu-studio.overrideAttrs (old: rec {
|
||||
version = "01.10.02.76";
|
||||
src = pkgs.fetchFromGitHub {
|
||||
owner = "bambulab";
|
||||
repo = "BambuStudio";
|
||||
rev = "v${version}";
|
||||
hash = "sha256-LvAi3I5lnnumhOUagyej28uVy0Lgd3e19HNQXOUWSvQ=";
|
||||
};
|
||||
})
|
||||
else
|
||||
pkgs.bambu-studio;
|
||||
in
|
||||
{
|
||||
config = mkIf config.gui.enable {
|
||||
|
||||
|
@ -26,7 +42,9 @@ with lib;
|
|||
# CAD & 3D Plotting
|
||||
openscad
|
||||
fstl
|
||||
legacy_2311.cura
|
||||
|
||||
orca-slicer
|
||||
bambu-studio
|
||||
|
||||
qrencode
|
||||
|
||||
|
|
|
@ -9,7 +9,7 @@ with lib;
|
|||
{
|
||||
config = mkIf config.gui.enable {
|
||||
home.packages = [
|
||||
pkgs.legacy_2405.logseq
|
||||
pkgs.logseq
|
||||
];
|
||||
#home.file.".config/Logseq/Preferences".source = (pkgs.formats.json { }).generate "LogseqPreferences.json"
|
||||
# {
|
||||
|
|
|
@ -7,7 +7,7 @@
|
|||
with pkgs;
|
||||
with lib;
|
||||
let
|
||||
nextcloud-client = pkgs.legacy_2311.nextcloud-client;
|
||||
nextcloud-client = pkgs.nextcloud-client;
|
||||
|
||||
nextcloudSync =
|
||||
folder:
|
||||
|
@ -51,6 +51,7 @@ in
|
|||
(nextcloudSync "Kunstbuch")
|
||||
(nextcloudSync "Flipper")
|
||||
(nextcloudSync "AWS-SolutionArchitect-Professional")
|
||||
(nextcloudSync "windows")
|
||||
|
||||
borrow
|
||||
|
||||
|
|
|
@ -9,12 +9,10 @@ with lib;
|
|||
{
|
||||
|
||||
config = mkIf config.gui.enable {
|
||||
programs.obs-studio.enable = true;
|
||||
programs.obs-studio.enable = false;
|
||||
home.packages = [
|
||||
emoji-picker
|
||||
signal-desktop
|
||||
#legacy_2311.fluffychat
|
||||
#fluffychat
|
||||
];
|
||||
|
||||
};
|
||||
|
|
|
@ -1,8 +1,6 @@
|
|||
{ pkgs, config, ... }:
|
||||
{
|
||||
|
||||
stylix.targets.swaylock.enable = config.gui.enable;
|
||||
|
||||
stylix.base16Scheme = "${pkgs.base16-schemes}/share/themes/gruvbox-light-medium.yaml";
|
||||
|
||||
stylix.fonts = {
|
||||
|
|
|
@ -8,7 +8,6 @@ with lib;
|
|||
with types;
|
||||
let
|
||||
|
||||
#taskwarrior-tui = pkgs.legacy_2311.taskwarrior-tui;
|
||||
taskwarrior-tui = pkgs.taskwarrior-tui;
|
||||
taskwarrior = pkgs.taskwarrior3;
|
||||
|
||||
|
@ -23,6 +22,7 @@ in
|
|||
home.packages = [
|
||||
|
||||
pkgs.timewarrior
|
||||
pkgs.bugwarrior
|
||||
|
||||
taskwarrior
|
||||
pkgs.tasksh
|
||||
|
|
|
@ -1,8 +1,6 @@
|
|||
{ pkgs, config, ... }:
|
||||
{
|
||||
|
||||
stylix.targets.swaylock.enable = config.gui.enable;
|
||||
|
||||
stylix.base16Scheme = "${pkgs.base16-schemes}/share/themes/gruvbox-light-medium.yaml";
|
||||
|
||||
stylix.fonts = {
|
||||
|
|
|
@ -13,7 +13,6 @@
|
|||
./syncthing.nix
|
||||
|
||||
./network-tinc.nix
|
||||
./network-tinc_retiolum.nix
|
||||
./network-wireguard-wg0.nix
|
||||
./network-wireguard-wg1.nix
|
||||
|
||||
|
@ -27,12 +26,6 @@
|
|||
|
||||
];
|
||||
|
||||
#time.timeZone = lib.mkForce "Asia/Bangkok";
|
||||
#time.timeZone = lib.mkForce "Asia/Tokyo";
|
||||
time.timeZone = lib.mkForce "Pacific/Auckland";
|
||||
#time.timeZone = lib.mkForce "Asia/Singapore";
|
||||
#time.timeZone = lib.mkForce "Asia/Makassar";
|
||||
|
||||
#clan.core.facts.services =
|
||||
# let
|
||||
# promptKey = key:
|
||||
|
@ -53,8 +46,10 @@
|
|||
# (promptKey "pushover.api_key");
|
||||
|
||||
components.virtualisation.enable = true;
|
||||
components.virtualisation.qemu.enable = false;
|
||||
|
||||
components.gui.enable = true;
|
||||
#components.gui.audio.enable = false;
|
||||
components.mainUser.enable = true;
|
||||
components.media.enable = true;
|
||||
components.media.tts-client.enable = false;
|
||||
|
@ -63,7 +58,7 @@
|
|||
components.terminal.enable = true;
|
||||
|
||||
telemetry.enable = true;
|
||||
telemetry.opentelemetry.exporter.endpoint = "10.100.0.1:4317"; # orbi
|
||||
telemetry.apps.opentelemetry.exporter.endpoint = "10.100.0.1:4317"; # orbi
|
||||
|
||||
home-manager.users.mainUser.home.sessionPath = [ "$HOME/.timewarrior/scripts" ];
|
||||
# todo: move to homemanager
|
||||
|
|
|
@ -1,38 +0,0 @@
|
|||
{
|
||||
config,
|
||||
factsGenerator,
|
||||
pkgs,
|
||||
...
|
||||
}:
|
||||
{
|
||||
|
||||
clan.core.facts.services.tinc_retiolum = factsGenerator.tinc { name = "retiolum"; };
|
||||
|
||||
networking.retiolum.port = 720;
|
||||
networking.retiolum.nodename = "cherry";
|
||||
|
||||
healthchecks.localCommands.ping-retiolum = pkgs.writers.writeBash "ping-retiolum" ''
|
||||
ping -c 1 -W 5 ${config.networking.retiolum.nodename}.r
|
||||
'';
|
||||
|
||||
services.tinc.networks.retiolum = {
|
||||
ed25519PrivateKeyFile =
|
||||
config.clan.core.facts.services.tinc_retiolum.secret."tinc.retiolum.ed25519_key.priv".path;
|
||||
rsaPrivateKeyFile =
|
||||
config.clan.core.facts.services.tinc_retiolum.secret."tinc.retiolum.rsa_key.priv".path;
|
||||
};
|
||||
|
||||
#fileSystems."/retiolum/sicily" = {
|
||||
# device = "//sicily.r/tonne";
|
||||
# fsType = "cifs";
|
||||
# options = [
|
||||
# "guest"
|
||||
# "nofail"
|
||||
# "noauto"
|
||||
# "ro"
|
||||
# "rsize=16777216"
|
||||
# "cache=loose"
|
||||
# "x-systemd.after=network.target"
|
||||
# ];
|
||||
#};
|
||||
}
|
|
@ -18,6 +18,9 @@
|
|||
"wireguard.wg0.ip" = "10.100.0.7";
|
||||
};
|
||||
|
||||
# actually important to make machine visible over wireguard
|
||||
services.telegraf.extraConfig.inputs.ping = [ { urls = [ "10.100.0.1" ]; } ];
|
||||
|
||||
# Enable WireGuard
|
||||
networking.wg-quick.interfaces = {
|
||||
# Hub and Spoke Setup
|
||||
|
|
|
@ -15,9 +15,8 @@
|
|||
|
||||
./packages.nix
|
||||
|
||||
./network-tinc-retiolum.nix # make sure no service is open for this vpn!
|
||||
./network-tinc.nix
|
||||
./network-wireguard.nix
|
||||
./network-wireguard-wg0.nix
|
||||
|
||||
./hass-mqtt.nix
|
||||
./hass-zigbee2mqtt.nix
|
||||
|
@ -72,12 +71,11 @@
|
|||
features.boot.tor.enable = true;
|
||||
|
||||
telemetry.enable = true;
|
||||
telemetry.opentelemetry.receiver.endpoint = "0.0.0.0:4317";
|
||||
telemetry.apps.opentelemetry.receiver.endpoint = "0.0.0.0:4317";
|
||||
networking.firewall.interfaces.wg0.allowedTCPPorts = [ 4317 ];
|
||||
networking.firewall.interfaces.wg0.allowedUDPPorts = [ 4317 ];
|
||||
|
||||
healthchecks.closed.wg0.host = "10.100.0.2";
|
||||
healthchecks.closed.retiolum.host = "centauri.r";
|
||||
|
||||
services.printing.enable = false;
|
||||
|
||||
|
|
|
@ -16,5 +16,4 @@
|
|||
networking.firewall.interfaces.enp0s31f6.allowedTCPPorts = [ 1883 ];
|
||||
networking.firewall.interfaces.wg0.allowedTCPPorts = [ 1883 ];
|
||||
|
||||
healthchecks.closed.retiolum.ports.mqtt = [ 1883 ];
|
||||
}
|
||||
|
|
|
@ -8,11 +8,6 @@
|
|||
{
|
||||
imports = [ ./hass-mqtt.nix ];
|
||||
|
||||
healthchecks.closed.retiolum.ports.zigbee2mqtt = [
|
||||
1337
|
||||
9666
|
||||
];
|
||||
|
||||
services.zigbee2mqtt = {
|
||||
enable = true;
|
||||
dataDir = "/srv2/zigbee2mqtt";
|
||||
|
|
|
@ -2,6 +2,7 @@
|
|||
config,
|
||||
lib,
|
||||
pkgs,
|
||||
zerotierInterface,
|
||||
...
|
||||
}:
|
||||
{
|
||||
|
@ -17,7 +18,6 @@
|
|||
|
||||
networking.firewall.interfaces.wg0.allowedTCPPorts = [ 8123 ];
|
||||
networking.firewall.interfaces.wg0.allowedUDPPorts = [ 8123 ];
|
||||
|
||||
healthchecks.closed.retiolum.ports.hass = [ 8123 ];
|
||||
networking.firewall.interfaces.${zerotierInterface}.allowedTCPPorts = [ 8123 ];
|
||||
|
||||
}
|
||||
|
|
|
@ -2,43 +2,68 @@
|
|||
config,
|
||||
lib,
|
||||
pkgs,
|
||||
zerotierInterface,
|
||||
...
|
||||
}:
|
||||
with pkgs;
|
||||
let
|
||||
port = 8000;
|
||||
group = "media";
|
||||
port = 9002;
|
||||
in
|
||||
{
|
||||
users.users.audiobookshelf = {
|
||||
isSystemUser = true;
|
||||
group = group;
|
||||
|
||||
healthchecks.http.audiobookshelf-via-zerotier = {
|
||||
url = "${config.networking.hostName}.${config.clan.static-hosts.topLevelDomain}:${toString port}";
|
||||
expectedContent = "audiobookshelf";
|
||||
};
|
||||
|
||||
# make available in retiolum
|
||||
#networking.firewall.interfaces."tinc.retiolum".allowedTCPPorts = [ port ];
|
||||
#networking.firewall.interfaces."tinc.retiolum".allowedUDPPorts = [ port ];
|
||||
networking.firewall.interfaces.${zerotierInterface}.allowedTCPPorts = [ port ];
|
||||
|
||||
networking.firewall.interfaces.enp0s31f6.allowedTCPPorts = [ port ];
|
||||
networking.firewall.interfaces.enp0s31f6.allowedUDPPorts = [ port ];
|
||||
users.users.audiobookshelf = {
|
||||
isSystemUser = true;
|
||||
group = lib.mkForce group;
|
||||
};
|
||||
|
||||
networking.firewall.interfaces.wg0.allowedTCPPorts = [ port ];
|
||||
networking.firewall.interfaces.wg0.allowedUDPPorts = [ port ];
|
||||
# systemd.services.audiobookshelf = {
|
||||
# enable = true;
|
||||
# description = "Self-hosted audiobook server for managing and playing audiobooks";
|
||||
# serviceConfig = {
|
||||
# Type = "simple";
|
||||
# WorkingDirectory = "/srv/audiobookshelf";
|
||||
# ExecStart = "${audiobookshelf}/bin/audiobookshelf --port ${toString port}";
|
||||
# ExecReload = "${util-linux}/bin/kill -HUP $MAINPID";
|
||||
# Restart = "always";
|
||||
# User = config.users.users.audiobookshelf.name;
|
||||
# Group = config.users.users.audiobookshelf.group;
|
||||
# };
|
||||
# wantedBy = [ "multi-user.target" ];
|
||||
# requires = [ "network.target" ];
|
||||
# };
|
||||
|
||||
systemd.services.audiobookshelf = {
|
||||
services.audiobookshelf = {
|
||||
enable = true;
|
||||
description = "Self-hosted audiobook server for managing and playing audiobooks";
|
||||
serviceConfig = {
|
||||
Type = "simple";
|
||||
WorkingDirectory = "/srv/audiobookshelf";
|
||||
ExecStart = "${audiobookshelf}/bin/audiobookshelf --port ${toString port}";
|
||||
ExecReload = "${util-linux}/bin/kill -HUP $MAINPID";
|
||||
Restart = "always";
|
||||
User = config.users.users.audiobookshelf.name;
|
||||
Group = config.users.users.audiobookshelf.group;
|
||||
};
|
||||
wantedBy = [ "multi-user.target" ];
|
||||
requires = [ "network.target" ];
|
||||
port = 8000;
|
||||
};
|
||||
|
||||
services.nginx = {
|
||||
enable = true;
|
||||
recommendedProxySettings = true;
|
||||
virtualHosts."audiobookshelf.${config.networking.hostName}.${config.clan.static-hosts.topLevelDomain}" =
|
||||
{
|
||||
listen = [
|
||||
{
|
||||
addr = "[::]";
|
||||
port = port;
|
||||
ssl = false;
|
||||
}
|
||||
];
|
||||
locations."/" = {
|
||||
proxyPass = "http://127.0.0.1:${toString config.services.audiobookshelf.port}";
|
||||
proxyWebsockets = true;
|
||||
extraConfig = ''
|
||||
proxy_redirect http:// $scheme://;
|
||||
'';
|
||||
};
|
||||
};
|
||||
};
|
||||
|
||||
}
|
||||
|
|
|
@ -7,7 +7,7 @@
|
|||
{
|
||||
services.jellyfin = {
|
||||
enable = true;
|
||||
openFirewall = true; # todo: will open for retiolum as well
|
||||
openFirewall = true;
|
||||
group = "media";
|
||||
user = "media";
|
||||
};
|
||||
|
@ -15,7 +15,6 @@
|
|||
healthchecks.http.jellyfin = {
|
||||
url = "flix.${config.networking.hostName}.private";
|
||||
};
|
||||
healthchecks.closed.retiolum.ports.jellyfin = [ 8096 ];
|
||||
|
||||
services.nginx = {
|
||||
enable = true;
|
||||
|
|
|
@ -2,23 +2,32 @@
|
|||
config,
|
||||
lib,
|
||||
pkgs,
|
||||
zerotierInterface,
|
||||
...
|
||||
}:
|
||||
{
|
||||
|
||||
healthchecks.http.navidrome = {
|
||||
url = "${config.networking.hostName}.wg0:${toString config.services.navidrome.settings.Port}/app/#/login";
|
||||
healthchecks.http.navidrome-tinc = {
|
||||
url = "${config.networking.hostName}.private:${toString config.services.navidrome.settings.Port}/app/#/login";
|
||||
expectedContent = "Navidrome";
|
||||
};
|
||||
|
||||
healthchecks.closed.retiolum.ports.navidrome = [ config.services.navidrome.settings.Port ];
|
||||
healthchecks.http.navidrome-via-zerotier = {
|
||||
url = "${config.networking.hostName}.${config.clan.static-hosts.topLevelDomain}:${toString config.services.navidrome.settings.Port}/app/#/login";
|
||||
expectedContent = "Navidrome";
|
||||
};
|
||||
|
||||
networking.firewall.interfaces.${zerotierInterface}.allowedTCPPorts = [
|
||||
config.services.navidrome.settings.Port
|
||||
];
|
||||
|
||||
services.navidrome = {
|
||||
enable = true;
|
||||
openFirewall = true;
|
||||
group = "media";
|
||||
user = "media";
|
||||
settings.Address = "0.0.0.0";
|
||||
settings.Address = "[::]";
|
||||
settings.Port = 4533;
|
||||
settings.MusicFolder = "/media/arr/lidarr";
|
||||
};
|
||||
|
||||
|
|
|
@ -1,12 +1,6 @@
|
|||
{ config, ... }:
|
||||
{
|
||||
|
||||
healthchecks.closed.retiolum.ports.share = [
|
||||
137
|
||||
138
|
||||
139
|
||||
445
|
||||
];
|
||||
networking.firewall.interfaces.enp0s31f6.allowedTCPPorts = [
|
||||
445
|
||||
139
|
||||
|
|
|
@ -10,7 +10,6 @@
|
|||
url = config.services.syncthing.guiAddress;
|
||||
expectedContent = "syncthing";
|
||||
};
|
||||
healthchecks.closed.retiolum.ports.syncthing-gui = [ 8384 ];
|
||||
|
||||
services.syncthing = {
|
||||
enable = true;
|
||||
|
|
|
@ -1,23 +0,0 @@
|
|||
{
|
||||
config,
|
||||
factsGenerator,
|
||||
pkgs,
|
||||
...
|
||||
}:
|
||||
{
|
||||
clan.core.facts.services.tinc_retiolum = factsGenerator.tinc { name = "retiolum"; };
|
||||
|
||||
networking.retiolum.port = 720;
|
||||
networking.retiolum.nodename = "chungus";
|
||||
|
||||
healthchecks.localCommands.ping-retiolum = pkgs.writers.writeBash "ping-retiolum" ''
|
||||
ping -c 1 -W 5 ${config.networking.retiolum.nodename}.r
|
||||
'';
|
||||
|
||||
services.tinc.networks.retiolum = {
|
||||
ed25519PrivateKeyFile =
|
||||
config.clan.core.facts.services.tinc_retiolum.secret."tinc.retiolum.ed25519_key.priv".path;
|
||||
rsaPrivateKeyFile =
|
||||
config.clan.core.facts.services.tinc_retiolum.secret."tinc.retiolum.rsa_key.priv".path;
|
||||
};
|
||||
}
|
|
@ -18,6 +18,9 @@
|
|||
"wireguard.wg0.ip" = "10.100.0.2";
|
||||
};
|
||||
|
||||
# actually important to make machine visible over wireguard
|
||||
services.telegraf.extraConfig.inputs.ping = [ { urls = [ "10.100.0.1" ]; } ];
|
||||
|
||||
# Enable WireGuard
|
||||
networking.wg-quick.interfaces = {
|
||||
# Hub and Spoke Setup
|
|
@ -5,15 +5,21 @@
|
|||
...
|
||||
}:
|
||||
{
|
||||
healthchecks.http.atuin-tinc = {
|
||||
url = "${config.networking.hostName}.private:${toString config.services.atuin.port}";
|
||||
expectedContent = "version";
|
||||
};
|
||||
|
||||
healthchecks.closed.retiolum.ports.atuin = [ config.services.atuin.port ];
|
||||
# healthchecks.http.atuin-wg0 = {
|
||||
# url = "${config.networking.hostName}.wg0:${toString config.services.atuin.port}";
|
||||
# expectedContent = "version";
|
||||
# };
|
||||
# networking.firewall.interfaces.wg0.allowedTCPPorts = [
|
||||
# config.services.atuin.port
|
||||
# ];
|
||||
|
||||
services.atuin = {
|
||||
enable = true;
|
||||
package = pkgs.legacy_2405.atuin.overrideAttrs (_old: {
|
||||
# as cursed as doing mitigations=off in the kernel command line
|
||||
patches = [ "${assets}/0001-make-atuin-on-zfs-fast-again.patch" ];
|
||||
});
|
||||
host = "0.0.0.0";
|
||||
maxHistoryLength = 999999;
|
||||
openRegistration = false;
|
||||
|
|
|
@ -10,8 +10,6 @@
|
|||
expectedContent = "nixinate";
|
||||
};
|
||||
|
||||
healthchecks.closed.retiolum.ports.forgejo = [ config.services.forgejo.settings.server.HTTP_PORT ];
|
||||
|
||||
services.nginx = {
|
||||
enable = true;
|
||||
statusPage = true;
|
||||
|
|
|
@ -11,6 +11,5 @@
|
|||
url = "http://paperless.chungus.private/accounts/login/?next=/";
|
||||
expectedContent = "paperless.chungus.private";
|
||||
};
|
||||
healthchecks.closed.retiolum.ports.paperless = [ config.services.paperless.port ];
|
||||
|
||||
}
|
||||
|
|
|
@ -2,13 +2,15 @@
|
|||
config,
|
||||
pkgs,
|
||||
lib,
|
||||
zerotierInterface,
|
||||
...
|
||||
}:
|
||||
{
|
||||
|
||||
services.paperless = {
|
||||
enable = true;
|
||||
address = "0.0.0.0";
|
||||
address = "[::]";
|
||||
port = 28981;
|
||||
package = pkgs.paperless-ngx;
|
||||
settings = {
|
||||
PAPERLESS_OCR_LANGUAGE = "deu+eng";
|
||||
|
@ -35,6 +37,9 @@
|
|||
};
|
||||
|
||||
networking.firewall.interfaces.wg0.allowedTCPPorts = [ config.services.paperless.port ];
|
||||
networking.firewall.interfaces.${zerotierInterface}.allowedTCPPorts = [
|
||||
config.services.paperless.port
|
||||
];
|
||||
|
||||
services.nginx.virtualHosts."paperless.${config.networking.hostName}.private" = {
|
||||
serverAliases = [ "paperless.ingolf-wagner.de" ];
|
||||
|
|
|
@ -1,11 +1,6 @@
|
|||
{ config, factsGenerator, ... }:
|
||||
{
|
||||
|
||||
healthchecks.closed.retiolum.ports.s3 = [
|
||||
9000
|
||||
9001
|
||||
];
|
||||
|
||||
healthchecks.http.s3 = {
|
||||
url = "http://s3.chungus.private:9001/login";
|
||||
expectedContent = "minio";
|
||||
|
|
|
@ -6,8 +6,6 @@
|
|||
}:
|
||||
{
|
||||
|
||||
healthchecks.closed.retiolum.ports.taskwarrior-webui = [ 8080 ];
|
||||
|
||||
virtualisation.oci-containers = {
|
||||
containers.taskwarrior-webui = {
|
||||
volumes = [
|
||||
|
|
|
@ -1,8 +1,6 @@
|
|||
{ pkgs, ... }:
|
||||
{
|
||||
|
||||
healthchecks.closed.retiolum.ports.vault = [ 8200 ];
|
||||
|
||||
services.vault = {
|
||||
enable = true;
|
||||
#adress = "chungus.private:8200";
|
||||
|
|
|
@ -7,7 +7,7 @@
|
|||
default_labels_enabled = {
|
||||
exporter = true;
|
||||
job = true;
|
||||
instance = true;
|
||||
instance_name = true;
|
||||
level = true;
|
||||
};
|
||||
};
|
||||
|
@ -16,7 +16,7 @@
|
|||
{
|
||||
action = "insert";
|
||||
key = "loki.attribute.labels";
|
||||
value = "job, unit, boot_id, instance, facility, facility_label, priority, priority_label";
|
||||
value = "job, unit, boot_id, instance_name, facility, facility_label, priority, priority_label";
|
||||
}
|
||||
];
|
||||
resource.attributes = [
|
||||
|
|
|
@ -22,12 +22,8 @@
|
|||
};
|
||||
};
|
||||
|
||||
services.prometheus = {
|
||||
checkConfig = "syntax-only";
|
||||
enable = true;
|
||||
# keep data for 30 days
|
||||
extraFlags = [ "--storage.tsdb.retention.time=90d" ];
|
||||
};
|
||||
telemetry.apps.prometheus.enable = true;
|
||||
telemetry.apps.prometheus.retentionTime = "90d";
|
||||
|
||||
services.grafana.provision.datasources.settings = {
|
||||
apiVersion = 1;
|
||||
|
|
|
@ -22,11 +22,5 @@ with config.lib.topology;
|
|||
# type = "tinc";
|
||||
virtual = true;
|
||||
};
|
||||
interfaces."tinc.retiolum" = {
|
||||
network = "tinc.retiolum";
|
||||
# type = "tinc";
|
||||
virtual = true;
|
||||
};
|
||||
|
||||
};
|
||||
}
|
||||
|
|
|
@ -22,8 +22,6 @@ let
|
|||
in
|
||||
{
|
||||
|
||||
healthchecks.closed.retiolum.ports.vault = [ 9993 ];
|
||||
|
||||
environment.systemPackages = [
|
||||
(zerotierCommand "zerotier-script-members" ''
|
||||
curl "http://localhost:9993/controller/network/''${NWID}/member" -H "X-ZT1-AUTH: ''${TOKEN}" | gojq
|
||||
|
|
|
@ -45,6 +45,7 @@
|
|||
];
|
||||
|
||||
networking.firewall.enable = true;
|
||||
boot.kernel.sysctl."net.ipv4.ip_forwarding" = false;
|
||||
|
||||
services.logrotate.checkConfig = false; # because uid 3000 does not exist in here
|
||||
|
||||
|
@ -56,16 +57,19 @@
|
|||
components.network.enable = true;
|
||||
components.network.nginx.landingpage.enable = false;
|
||||
components.network.wifi.enable = false;
|
||||
|
||||
components.virtualisation.enable = true; # we only enable this stuff where we need it explicitly
|
||||
components.virtualisation.podman.enable = false;
|
||||
components.virtualisation.virtualbox.enable = false;
|
||||
|
||||
virtualisation.oci-containers.backend = "docker";
|
||||
|
||||
features.network.fail2ban.enable = true;
|
||||
features.boot.ssh.enable = true;
|
||||
|
||||
telemetry.enable = true;
|
||||
telemetry.opentelemetry.receiver.endpoint = "0.0.0.0:4317";
|
||||
telemetry.opentelemetry.exporter.endpoint = "10.100.0.2:4317"; # chnungus
|
||||
telemetry.apps.opentelemetry.receiver.endpoint = "0.0.0.0:4317";
|
||||
telemetry.apps.opentelemetry.exporter.endpoint = "10.100.0.2:4317"; # chnungus
|
||||
networking.firewall.interfaces.wg0.allowedTCPPorts = [ 4317 ];
|
||||
networking.firewall.interfaces.wg0.allowedUDPPorts = [ 4317 ];
|
||||
healthchecks.closed.public.ports.opentelemetry = [ 4317 ];
|
||||
|
|
|
@ -114,9 +114,8 @@ in
|
|||
{
|
||||
nixpkgs.pkgs = pkgs;
|
||||
imports = [
|
||||
"${components}/monitor/container.nix"
|
||||
inputs.nix-topology.nixosModules.default
|
||||
inputs.telemetry.nixosModules.telemetry
|
||||
inputs.telemetry.nixosModules.container-telemetry-non-private-network
|
||||
];
|
||||
system.stateVersion = "23.11";
|
||||
services.logrotate.checkConfig = false; # because uid 3000 does not exist in here
|
||||
|
|
|
@ -35,9 +35,8 @@ in
|
|||
{
|
||||
nixpkgs.pkgs = pkgs;
|
||||
imports = [
|
||||
"${components}/monitor/container.nix"
|
||||
inputs.nix-topology.nixosModules.default
|
||||
inputs.telemetry.nixosModules.telemetry
|
||||
inputs.telemetry.nixosModules.container-telemetry-non-private-network
|
||||
];
|
||||
system.stateVersion = "21.05";
|
||||
services.logrotate.checkConfig = false; # because uid 3000 does not exist in here
|
||||
|
@ -50,7 +49,6 @@ in
|
|||
|
||||
services.transmission = {
|
||||
enable = true;
|
||||
package = pkgs.legacy_2405.transmission_4;
|
||||
settings = {
|
||||
download-dir = "/media/torrent/downloads";
|
||||
incomplete-dir = "/media/torrent/incomplete";
|
||||
|
|
|
@ -31,7 +31,7 @@ in
|
|||
ping -c 1 -W 5 ${config.clan.core.facts.services.wireguard_ip.public."wireguard.wg0.ip".value}
|
||||
'';
|
||||
|
||||
boot.kernel.sysctl."net.ipv4.ip_forward" = true;
|
||||
boot.kernel.sysctl."net.ipv4.conf.wg0.forwarding" = true;
|
||||
|
||||
# Enable WireGuard
|
||||
networking.wg-quick.interfaces = {
|
||||
|
|
|
@ -60,9 +60,8 @@ in
|
|||
{
|
||||
nixpkgs.pkgs = pkgs;
|
||||
imports = [
|
||||
"${components}/monitor/container.nix"
|
||||
inputs.nix-topology.nixosModules.default
|
||||
inputs.telemetry.nixosModules.telemetry
|
||||
inputs.telemetry.nixosModules.container-telemetry-non-private-network
|
||||
];
|
||||
system.stateVersion = "24.11";
|
||||
services.logrotate.checkConfig = false; # because uid 3000 does not exist in here
|
||||
|
|
|
@ -4,12 +4,11 @@
|
|||
pkgs,
|
||||
...
|
||||
}:
|
||||
let
|
||||
port = 5005;
|
||||
in
|
||||
{
|
||||
|
||||
# nixpkgs.config.packageOverrides = p: {
|
||||
# nix-serve = p.haskellPackages.nix-serve-ng;
|
||||
# };
|
||||
|
||||
# generate private key with:
|
||||
# nix-store --generate-binary-cache-key my-secret-key my-public-key
|
||||
clan.core.facts.services."nix-serve" = {
|
||||
|
@ -26,34 +25,31 @@
|
|||
'';
|
||||
};
|
||||
|
||||
services.nix-serve = {
|
||||
services.harmonia = {
|
||||
enable = true;
|
||||
secretKeyFile = config.clan.core.facts.services.nix-serve.secret."nix-serve.key".path;
|
||||
port = 5005;
|
||||
signKeyPaths = [ config.clan.core.facts.services.nix-serve.secret."nix-serve.key".path ];
|
||||
settings = {
|
||||
bind = "127.0.0.1:${toString port}";
|
||||
priority = 100;
|
||||
};
|
||||
};
|
||||
|
||||
healthchecks.closed.public.ports.nix-serve = [ config.services.nix-serve.port ];
|
||||
healthchecks.http.nix-serve = {
|
||||
healthchecks.closed.public.ports.nix-cache = [ port ];
|
||||
healthchecks.http.nix-cache = {
|
||||
url = "cache.${config.networking.hostName}.wg0/nix-cache-info";
|
||||
expectedContent = "Priority: 50";
|
||||
expectedContent = "Priority: ${toString config.services.harmonia.settings.priority}";
|
||||
};
|
||||
|
||||
services.nginx = {
|
||||
enable = true;
|
||||
virtualHosts."cache.${config.networking.hostName}.wg0" = {
|
||||
locations."/".extraConfig = ''
|
||||
proxy_pass http://localhost:${toString config.services.nix-serve.port};
|
||||
allow ${config.wireguard.wg0.subnet};
|
||||
deny all;
|
||||
'';
|
||||
# curl https://cache.nixos.org/nix-cache-info
|
||||
# lower priority means ask first.
|
||||
locations."= /nix-cache-info".extraConfig = ''
|
||||
alias ${pkgs.writeText "cache-info" ''
|
||||
StoreDir: /nix/store
|
||||
WantMassQuery: 1
|
||||
Priority: 50
|
||||
''};
|
||||
proxy_pass http://localhost:${toString port};
|
||||
proxy_set_header Host $host;
|
||||
proxy_http_version 1.1;
|
||||
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
|
||||
proxy_set_header Upgrade $http_upgrade;
|
||||
proxy_set_header Connection $connection_upgrade;
|
||||
allow ${config.wireguard.wg0.subnet};
|
||||
deny all;
|
||||
'';
|
||||
|
|
|
@ -34,9 +34,8 @@ in
|
|||
{
|
||||
nixpkgs.pkgs = pkgs;
|
||||
imports = [
|
||||
"${components}/monitor/container.nix"
|
||||
inputs.nix-topology.nixosModules.default
|
||||
inputs.telemetry.nixosModules.telemetry
|
||||
inputs.telemetry.nixosModules.container-telemetry-non-private-network
|
||||
];
|
||||
system.stateVersion = "23.11";
|
||||
services.logrotate.checkConfig = false; # because uid 3000 does not exist in here
|
||||
|
@ -50,7 +49,6 @@ in
|
|||
services.photoprism = {
|
||||
enable = true;
|
||||
port = photoprismPort;
|
||||
package = pkgs.legacy_2405.photoprism;
|
||||
originalsPath = "/var/lib/private/photoprism/originals";
|
||||
address = "0.0.0.0";
|
||||
settings = {
|
||||
|
|
|
@ -25,9 +25,8 @@ in
|
|||
{
|
||||
nixpkgs.pkgs = pkgs;
|
||||
imports = [
|
||||
"${components}/monitor/container.nix"
|
||||
inputs.nix-topology.nixosModules.default
|
||||
inputs.telemetry.nixosModules.telemetry
|
||||
inputs.telemetry.nixosModules.container-telemetry-non-private-network
|
||||
];
|
||||
system.stateVersion = "24.05";
|
||||
services.logrotate.checkConfig = false; # because uid 3000 does not exist in here
|
||||
|
|
|
@ -90,9 +90,8 @@ in
|
|||
{
|
||||
nixpkgs.pkgs = pkgs;
|
||||
imports = [
|
||||
"${components}/monitor/container.nix"
|
||||
inputs.nix-topology.nixosModules.default
|
||||
inputs.telemetry.nixosModules.telemetry
|
||||
inputs.telemetry.nixosModules.container-telemetry-non-private-network
|
||||
];
|
||||
system.stateVersion = "23.11";
|
||||
services.logrotate.checkConfig = false; # because uid 3000 does not exist in here
|
||||
|
|
|
@ -50,7 +50,6 @@
|
|||
networking.useDHCP = lib.mkDefault true;
|
||||
# networking.interfaces.enp0s25.useDHCP = lib.mkDefault true;
|
||||
# networking.interfaces.tinc.private.useDHCP = lib.mkDefault true;
|
||||
# networking.interfaces.tinc.retiolum.useDHCP = lib.mkDefault true;
|
||||
# networking.interfaces.tinc.secret.useDHCP = lib.mkDefault true;
|
||||
# networking.interfaces.virbr0.useDHCP = lib.mkDefault true;
|
||||
# networking.interfaces.wlp3s0.useDHCP = lib.mkDefault true;
|
||||
|
|
|
@ -12,6 +12,9 @@
|
|||
"wireguard.wg0.ip" = "10.100.0.100";
|
||||
};
|
||||
|
||||
# actually important to make machine visible over wireguard
|
||||
services.telegraf.extraConfig.inputs.ping = [ { urls = [ "10.100.0.1" ]; } ];
|
||||
|
||||
# Enable WireGuard
|
||||
networking.wg-quick.interfaces = {
|
||||
# Hub and Spoke Setup
|
||||
|
|
|
@ -13,6 +13,21 @@
|
|||
programs.deno.enable = true;
|
||||
programs.yamlfmt.enable = true;
|
||||
programs.black.enable = true;
|
||||
programs.beautysh.enable = true;
|
||||
programs.taplo.enable = true;
|
||||
programs.clang-format.enable = true;
|
||||
settings.global.excludes = [
|
||||
"machines/*/facts/*"
|
||||
"old-machines/*/facts/*"
|
||||
"vars/*"
|
||||
"*.gpg"
|
||||
"*.pub"
|
||||
".git-crypt/*"
|
||||
"*.png"
|
||||
"LICENSE"
|
||||
"*.gitignore"
|
||||
".gitattributes"
|
||||
];
|
||||
};
|
||||
};
|
||||
}
|
||||
|
|
|
@ -4,9 +4,6 @@
|
|||
perSystem =
|
||||
{ pkgs, system, ... }:
|
||||
with pkgs;
|
||||
let
|
||||
legacy_2311 = import inputs.nixpkgs-legacy_2311 { inherit system; };
|
||||
in
|
||||
{
|
||||
packages.pkl = callPackage ./pkl { };
|
||||
packages.otpmenu = callPackage ./otpmenu { };
|
||||
|
|
|
@ -1,19 +1,20 @@
|
|||
#ifdef INCLUDE_WINDOW_CONFIG
|
||||
|
||||
/* default window dimensions (overwritten via -g option): */
|
||||
static const int WIN_WIDTH = 800;
|
||||
static const int WIN_WIDTH = 800;
|
||||
static const int WIN_HEIGHT = 600;
|
||||
|
||||
/* colors and font can be overwritten via X resource properties.
|
||||
* See nsxiv(1), X(7) section Resources and xrdb(1) for more information.
|
||||
* X resource value (NULL == default) */
|
||||
static const char *WIN_BG[] = { "Nsxiv.window.background", "white" };
|
||||
static const char *WIN_FG[] = { "Nsxiv.window.foreground", "black" };
|
||||
static const char *MARK_FG[] = { "Nsxiv.mark.foreground", NULL };
|
||||
* X resource value (NULL ==
|
||||
* default) */
|
||||
static const char *WIN_BG[] = {"Nsxiv.window.background", "white"};
|
||||
static const char *WIN_FG[] = {"Nsxiv.window.foreground", "black"};
|
||||
static const char *MARK_FG[] = {"Nsxiv.mark.foreground", NULL};
|
||||
#if HAVE_LIBFONTS
|
||||
static const char *BAR_BG[] = { "Nsxiv.bar.background", NULL };
|
||||
static const char *BAR_FG[] = { "Nsxiv.bar.foreground", NULL };
|
||||
static const char *BAR_FONT[] = { "Nsxiv.bar.font", "monospace-8" };
|
||||
static const char *BAR_BG[] = {"Nsxiv.bar.background", NULL};
|
||||
static const char *BAR_FG[] = {"Nsxiv.bar.foreground", NULL};
|
||||
static const char *BAR_FONT[] = {"Nsxiv.bar.font", "monospace-8"};
|
||||
|
||||
/* if true, statusbar appears on top of the window */
|
||||
static const bool TOP_STATUSBAR = false;
|
||||
|
@ -25,10 +26,8 @@ static const bool TOP_STATUSBAR = false;
|
|||
/* levels (in percent) to use when zooming via '-' and '+':
|
||||
* (first/last value is used as min/max zoom level)
|
||||
*/
|
||||
static const float zoom_levels[] = {
|
||||
12.5, 25.0, 50.0, 75.0,
|
||||
100.0, 150.0, 200.0, 400.0, 800.0
|
||||
};
|
||||
static const float zoom_levels[] = {12.5, 25.0, 50.0, 75.0, 100.0,
|
||||
150.0, 200.0, 400.0, 800.0};
|
||||
|
||||
/* default slideshow delay (in sec, overwritten via -S option): */
|
||||
static const int SLIDESHOW_DELAY = 5;
|
||||
|
@ -37,10 +36,10 @@ static const int SLIDESHOW_DELAY = 5;
|
|||
* (0, CC_STEPS] are mapped to the ranges [0, 1], and (1, *_MAX].
|
||||
* Higher step count will have higher granulairy.
|
||||
*/
|
||||
static const int CC_STEPS = 32;
|
||||
static const double GAMMA_MAX = 10.0;
|
||||
static const double BRIGHTNESS_MAX = 2.0;
|
||||
static const double CONTRAST_MAX = 4.0;
|
||||
static const int CC_STEPS = 32;
|
||||
static const double GAMMA_MAX = 10.0;
|
||||
static const double BRIGHTNESS_MAX = 2.0;
|
||||
static const double CONTRAST_MAX = 4.0;
|
||||
|
||||
/* command i_scroll pans image 1/PAN_FRACTION of screen width/height */
|
||||
static const int PAN_FRACTION = 5;
|
||||
|
@ -53,9 +52,12 @@ static const int PAN_FRACTION = 5;
|
|||
* NOTE: higher cache size means better image reloading performance, but also
|
||||
* higher memory usage.
|
||||
*/
|
||||
static const int CACHE_SIZE_MEM_PERCENTAGE = 3; /* use 3% of total memory for cache */
|
||||
static const int CACHE_SIZE_LIMIT = 256 * 1024 * 1024; /* but not above 256MiB */
|
||||
static const int CACHE_SIZE_FALLBACK = 32 * 1024 * 1024; /* fallback to 32MiB if we can't determine total memory */
|
||||
static const int CACHE_SIZE_MEM_PERCENTAGE =
|
||||
3; /* use 3% of total memory for cache */
|
||||
static const int CACHE_SIZE_LIMIT =
|
||||
256 * 1024 * 1024; /* but not above 256MiB */
|
||||
static const int CACHE_SIZE_FALLBACK =
|
||||
32 * 1024 * 1024; /* fallback to 32MiB if we can't determine total memory */
|
||||
|
||||
#endif
|
||||
#ifdef INCLUDE_OPTIONS_CONFIG
|
||||
|
@ -82,7 +84,7 @@ static const bool TNS_FILTERS_IS_BLACKLIST = false;
|
|||
#ifdef INCLUDE_THUMBS_CONFIG
|
||||
|
||||
/* thumbnail sizes in pixels (width == height): */
|
||||
static const int thumb_sizes[] = { 32, 64, 96, 128, 160 };
|
||||
static const int thumb_sizes[] = {32, 64, 96, 128, 160};
|
||||
|
||||
/* thumbnail size at startup, index into thumb_sizes[]: */
|
||||
static const int THUMB_SIZE = 3;
|
||||
|
@ -98,115 +100,115 @@ static const KeySym KEYHANDLER_ABORT = XK_Escape;
|
|||
|
||||
/* keyboard mappings for image and thumbnail mode: */
|
||||
static const keymap_t keys[] = {
|
||||
/* modifiers key function argument */
|
||||
{ 0, XK_q, g_quit, 0 },
|
||||
{ 0, XK_Q, g_pick_quit, 0 },
|
||||
{ 0, XK_Return, g_switch_mode, None },
|
||||
{ 0, XK_f, g_toggle_fullscreen, None },
|
||||
{ 0, XK_b, g_toggle_bar, None },
|
||||
{ ControlMask, XK_x, g_prefix_external, None },
|
||||
{ 0, XK_g, g_first, None },
|
||||
{ 0, XK_G, g_n_or_last, None },
|
||||
{ 0, XK_r, g_reload_image, None },
|
||||
{ 0, XK_D, g_remove_image, None },
|
||||
{ ControlMask, XK_h, g_scroll_screen, DIR_LEFT },
|
||||
{ ControlMask, XK_Left, g_scroll_screen, DIR_LEFT },
|
||||
{ ControlMask, XK_j, g_scroll_screen, DIR_DOWN },
|
||||
{ ControlMask, XK_Down, g_scroll_screen, DIR_DOWN },
|
||||
{ ControlMask, XK_k, g_scroll_screen, DIR_UP },
|
||||
{ ControlMask, XK_Up, g_scroll_screen, DIR_UP },
|
||||
{ ControlMask, XK_l, g_scroll_screen, DIR_RIGHT },
|
||||
{ ControlMask, XK_Right, g_scroll_screen, DIR_RIGHT },
|
||||
{ 0, XK_plus, g_zoom, +1 },
|
||||
{ 0, XK_KP_Add, g_zoom, +1 },
|
||||
{ 0, XK_minus, g_zoom, -1 },
|
||||
{ 0, XK_KP_Subtract, g_zoom, -1 },
|
||||
{ 0, XK_m, g_toggle_image_mark, None },
|
||||
{ 0, XK_M, g_mark_range, None },
|
||||
{ ControlMask, XK_m, g_reverse_marks, None },
|
||||
{ ControlMask, XK_u, g_unmark_all, None },
|
||||
{ 0, XK_N, g_navigate_marked, +1 },
|
||||
{ 0, XK_P, g_navigate_marked, -1 },
|
||||
{ 0, XK_braceleft, g_change_gamma, -1 },
|
||||
{ 0, XK_braceright, g_change_gamma, +1 },
|
||||
{ ControlMask, XK_g, g_change_gamma, 0 },
|
||||
{ ControlMask, XK_bracketright, g_change_brightness, +1 },
|
||||
{ ControlMask, XK_bracketleft, g_change_brightness, -1 },
|
||||
{ 0, XK_parenleft, g_change_contrast, -1 },
|
||||
{ 0, XK_parenright, g_change_contrast, +1 },
|
||||
/* modifiers key function argument */
|
||||
{0, XK_q, g_quit, 0},
|
||||
{0, XK_Q, g_pick_quit, 0},
|
||||
{0, XK_Return, g_switch_mode, None},
|
||||
{0, XK_f, g_toggle_fullscreen, None},
|
||||
{0, XK_b, g_toggle_bar, None},
|
||||
{ControlMask, XK_x, g_prefix_external, None},
|
||||
{0, XK_g, g_first, None},
|
||||
{0, XK_G, g_n_or_last, None},
|
||||
{0, XK_r, g_reload_image, None},
|
||||
{0, XK_D, g_remove_image, None},
|
||||
{ControlMask, XK_h, g_scroll_screen, DIR_LEFT},
|
||||
{ControlMask, XK_Left, g_scroll_screen, DIR_LEFT},
|
||||
{ControlMask, XK_j, g_scroll_screen, DIR_DOWN},
|
||||
{ControlMask, XK_Down, g_scroll_screen, DIR_DOWN},
|
||||
{ControlMask, XK_k, g_scroll_screen, DIR_UP},
|
||||
{ControlMask, XK_Up, g_scroll_screen, DIR_UP},
|
||||
{ControlMask, XK_l, g_scroll_screen, DIR_RIGHT},
|
||||
{ControlMask, XK_Right, g_scroll_screen, DIR_RIGHT},
|
||||
{0, XK_plus, g_zoom, +1},
|
||||
{0, XK_KP_Add, g_zoom, +1},
|
||||
{0, XK_minus, g_zoom, -1},
|
||||
{0, XK_KP_Subtract, g_zoom, -1},
|
||||
{0, XK_m, g_toggle_image_mark, None},
|
||||
{0, XK_M, g_mark_range, None},
|
||||
{ControlMask, XK_m, g_reverse_marks, None},
|
||||
{ControlMask, XK_u, g_unmark_all, None},
|
||||
{0, XK_N, g_navigate_marked, +1},
|
||||
{0, XK_P, g_navigate_marked, -1},
|
||||
{0, XK_braceleft, g_change_gamma, -1},
|
||||
{0, XK_braceright, g_change_gamma, +1},
|
||||
{ControlMask, XK_g, g_change_gamma, 0},
|
||||
{ControlMask, XK_bracketright, g_change_brightness, +1},
|
||||
{ControlMask, XK_bracketleft, g_change_brightness, -1},
|
||||
{0, XK_parenleft, g_change_contrast, -1},
|
||||
{0, XK_parenright, g_change_contrast, +1},
|
||||
|
||||
{ 0, XK_h, t_move_sel, DIR_LEFT },
|
||||
{ 0, XK_Left, t_move_sel, DIR_LEFT },
|
||||
{ 0, XK_j, t_move_sel, DIR_DOWN },
|
||||
{ 0, XK_Down, t_move_sel, DIR_DOWN },
|
||||
{ 0, XK_k, t_move_sel, DIR_UP },
|
||||
{ 0, XK_Up, t_move_sel, DIR_UP },
|
||||
{ 0, XK_l, t_move_sel, DIR_RIGHT },
|
||||
{ 0, XK_Right, t_move_sel, DIR_RIGHT },
|
||||
{ 0, XK_R, t_reload_all, None },
|
||||
{0, XK_h, t_move_sel, DIR_LEFT},
|
||||
{0, XK_Left, t_move_sel, DIR_LEFT},
|
||||
{0, XK_j, t_move_sel, DIR_DOWN},
|
||||
{0, XK_Down, t_move_sel, DIR_DOWN},
|
||||
{0, XK_k, t_move_sel, DIR_UP},
|
||||
{0, XK_Up, t_move_sel, DIR_UP},
|
||||
{0, XK_l, t_move_sel, DIR_RIGHT},
|
||||
{0, XK_Right, t_move_sel, DIR_RIGHT},
|
||||
{0, XK_R, t_reload_all, None},
|
||||
|
||||
{ 0, XK_n, i_navigate, +1 },
|
||||
{ 0, XK_n, i_scroll_to_edge, DIR_LEFT | DIR_UP },
|
||||
{ 0, XK_space, i_navigate, +1 },
|
||||
{ 0, XK_p, i_navigate, -1 },
|
||||
{ 0, XK_p, i_scroll_to_edge, DIR_LEFT | DIR_UP },
|
||||
{ 0, XK_BackSpace, i_navigate, -1 },
|
||||
{ 0, XK_bracketright, i_navigate, +10 },
|
||||
{ 0, XK_bracketleft, i_navigate, -10 },
|
||||
{ ControlMask, XK_6, i_alternate, None },
|
||||
{ ControlMask, XK_n, i_navigate_frame, +1 },
|
||||
{ ControlMask, XK_p, i_navigate_frame, -1 },
|
||||
{ ControlMask, XK_space, i_toggle_animation, None },
|
||||
{ ControlMask, XK_a, i_toggle_animation, None },
|
||||
{ 0, XK_h, i_scroll, DIR_LEFT },
|
||||
{ 0, XK_Left, i_scroll, DIR_LEFT },
|
||||
{ 0, XK_j, i_scroll, DIR_DOWN },
|
||||
{ 0, XK_Down, i_scroll, DIR_DOWN },
|
||||
{ 0, XK_k, i_scroll, DIR_UP },
|
||||
{ 0, XK_Up, i_scroll, DIR_UP },
|
||||
{ 0, XK_l, i_scroll, DIR_RIGHT },
|
||||
{ 0, XK_Right, i_scroll, DIR_RIGHT },
|
||||
{ 0, XK_H, i_scroll_to_edge, DIR_LEFT },
|
||||
{ 0, XK_J, i_scroll_to_edge, DIR_DOWN },
|
||||
{ 0, XK_K, i_scroll_to_edge, DIR_UP },
|
||||
{ 0, XK_L, i_scroll_to_edge, DIR_RIGHT },
|
||||
{ 0, XK_z, i_scroll_to_center, None },
|
||||
{ 0, XK_equal, i_set_zoom, 100 },
|
||||
{ 0, XK_w, i_fit_to_win, SCALE_DOWN },
|
||||
{ 0, XK_W, i_fit_to_win, SCALE_FIT },
|
||||
{ 0, XK_F, i_fit_to_win, SCALE_FILL },
|
||||
{ 0, XK_e, i_fit_to_win, SCALE_WIDTH },
|
||||
{ 0, XK_E, i_fit_to_win, SCALE_HEIGHT },
|
||||
{ 0, XK_less, i_rotate, DEGREE_270 },
|
||||
{ 0, XK_greater, i_rotate, DEGREE_90 },
|
||||
{ 0, XK_question, i_rotate, DEGREE_180 },
|
||||
{ 0, XK_bar, i_flip, FLIP_HORIZONTAL },
|
||||
{ 0, XK_underscore, i_flip, FLIP_VERTICAL },
|
||||
{ 0, XK_a, i_toggle_antialias, None },
|
||||
{ 0, XK_A, i_toggle_alpha, None },
|
||||
{ 0, XK_s, i_slideshow, None },
|
||||
{0, XK_n, i_navigate, +1},
|
||||
{0, XK_n, i_scroll_to_edge, DIR_LEFT | DIR_UP},
|
||||
{0, XK_space, i_navigate, +1},
|
||||
{0, XK_p, i_navigate, -1},
|
||||
{0, XK_p, i_scroll_to_edge, DIR_LEFT | DIR_UP},
|
||||
{0, XK_BackSpace, i_navigate, -1},
|
||||
{0, XK_bracketright, i_navigate, +10},
|
||||
{0, XK_bracketleft, i_navigate, -10},
|
||||
{ControlMask, XK_6, i_alternate, None},
|
||||
{ControlMask, XK_n, i_navigate_frame, +1},
|
||||
{ControlMask, XK_p, i_navigate_frame, -1},
|
||||
{ControlMask, XK_space, i_toggle_animation, None},
|
||||
{ControlMask, XK_a, i_toggle_animation, None},
|
||||
{0, XK_h, i_scroll, DIR_LEFT},
|
||||
{0, XK_Left, i_scroll, DIR_LEFT},
|
||||
{0, XK_j, i_scroll, DIR_DOWN},
|
||||
{0, XK_Down, i_scroll, DIR_DOWN},
|
||||
{0, XK_k, i_scroll, DIR_UP},
|
||||
{0, XK_Up, i_scroll, DIR_UP},
|
||||
{0, XK_l, i_scroll, DIR_RIGHT},
|
||||
{0, XK_Right, i_scroll, DIR_RIGHT},
|
||||
{0, XK_H, i_scroll_to_edge, DIR_LEFT},
|
||||
{0, XK_J, i_scroll_to_edge, DIR_DOWN},
|
||||
{0, XK_K, i_scroll_to_edge, DIR_UP},
|
||||
{0, XK_L, i_scroll_to_edge, DIR_RIGHT},
|
||||
{0, XK_z, i_scroll_to_center, None},
|
||||
{0, XK_equal, i_set_zoom, 100},
|
||||
{0, XK_w, i_fit_to_win, SCALE_DOWN},
|
||||
{0, XK_W, i_fit_to_win, SCALE_FIT},
|
||||
{0, XK_F, i_fit_to_win, SCALE_FILL},
|
||||
{0, XK_e, i_fit_to_win, SCALE_WIDTH},
|
||||
{0, XK_E, i_fit_to_win, SCALE_HEIGHT},
|
||||
{0, XK_less, i_rotate, DEGREE_270},
|
||||
{0, XK_greater, i_rotate, DEGREE_90},
|
||||
{0, XK_question, i_rotate, DEGREE_180},
|
||||
{0, XK_bar, i_flip, FLIP_HORIZONTAL},
|
||||
{0, XK_underscore, i_flip, FLIP_VERTICAL},
|
||||
{0, XK_a, i_toggle_antialias, None},
|
||||
{0, XK_A, i_toggle_alpha, None},
|
||||
{0, XK_s, i_slideshow, None},
|
||||
};
|
||||
|
||||
/* mouse button mappings for image mode: */
|
||||
static const button_t buttons_img[] = {
|
||||
/* modifiers button function argument */
|
||||
{ 0, 1, i_drag, DRAG_RELATIVE },
|
||||
{ ControlMask, 1, i_drag, DRAG_RELATIVE },
|
||||
{ 0, 2, i_drag, DRAG_ABSOLUTE },
|
||||
{ 0, 3, g_switch_mode, None },
|
||||
{ 0, 4, g_zoom, +1 },
|
||||
{ 0, 5, g_zoom, -1 },
|
||||
/* modifiers button function argument */
|
||||
{0, 1, i_drag, DRAG_RELATIVE},
|
||||
{ControlMask, 1, i_drag, DRAG_RELATIVE},
|
||||
{0, 2, i_drag, DRAG_ABSOLUTE},
|
||||
{0, 3, g_switch_mode, None},
|
||||
{0, 4, g_zoom, +1},
|
||||
{0, 5, g_zoom, -1},
|
||||
};
|
||||
|
||||
/* mouse button mappings for thumbnail mode: */
|
||||
static const button_t buttons_tns[] = {
|
||||
/* modifiers button function argument */
|
||||
{ 0, 1, t_select, None },
|
||||
{ 0, 3, t_drag_mark_image, None },
|
||||
{ 0, 4, t_scroll, DIR_UP },
|
||||
{ 0, 5, t_scroll, DIR_DOWN },
|
||||
{ ControlMask, 4, g_scroll_screen, DIR_UP },
|
||||
{ ControlMask, 5, g_scroll_screen, DIR_DOWN },
|
||||
/* modifiers button function argument */
|
||||
{0, 1, t_select, None},
|
||||
{0, 3, t_drag_mark_image, None},
|
||||
{0, 4, t_scroll, DIR_UP},
|
||||
{0, 5, t_scroll, DIR_DOWN},
|
||||
{ControlMask, 4, g_scroll_screen, DIR_UP},
|
||||
{ControlMask, 5, g_scroll_screen, DIR_DOWN},
|
||||
};
|
||||
|
||||
/* true means NAV_WIDTH is relative (33%), false means absolute (33 pixels) */
|
||||
|
@ -215,8 +217,6 @@ static const bool NAV_IS_REL = true;
|
|||
static const unsigned int NAV_WIDTH = 33;
|
||||
|
||||
/* mouse cursor on left, middle and right part of the window */
|
||||
static const cursor_t imgcursor[3] = {
|
||||
CURSOR_LEFT, CURSOR_ARROW, CURSOR_RIGHT
|
||||
};
|
||||
static const cursor_t imgcursor[3] = {CURSOR_LEFT, CURSOR_ARROW, CURSOR_RIGHT};
|
||||
|
||||
#endif
|
||||
|
|
|
@ -1,5 +1,5 @@
|
|||
{ pkgs }:
|
||||
|
||||
pkgs.writers.writeBashBin "sysetmctl-find-service-config" (
|
||||
pkgs.writers.writeBashBin "systemctl-find-service-config" (
|
||||
pkgs.lib.fileContents ./systemctl-find-service-config.sh
|
||||
)
|
||||
|
|
|
@ -2,47 +2,54 @@
|
|||
|
||||
# Funktion zum Anzeigen der Nutzung
|
||||
display_usage() {
|
||||
echo "Usage: $0 <service> <regex>"
|
||||
echo " <service>: Name des Systemdienstes"
|
||||
echo " <regex>: Regex für die Konfigurationsdatei"
|
||||
exit 1
|
||||
echo "Usage: $0 <service> <regex>"
|
||||
echo " <service>: Name des Systemdienstes"
|
||||
echo " <regex>: Regex für die Konfigurationsdatei"
|
||||
exit 1
|
||||
}
|
||||
|
||||
# Prüfen, ob genügend Argumente übergeben wurden
|
||||
if [ $# -ne 2 ]; then
|
||||
display_usage
|
||||
# Prüfen, ob mindestens ein Argument übergeben wurde
|
||||
if [ $# -lt 1 ] || [ $# -gt 2 ]; then
|
||||
display_usage
|
||||
fi
|
||||
|
||||
SERVICE=$1
|
||||
|
||||
# Spezialfall: Wenn nur ein Argument übergeben wurde
|
||||
if [ $# -eq 1 ]; then
|
||||
systemctl cat "$SERVICE"
|
||||
exit 0
|
||||
fi
|
||||
|
||||
REGEX=$2
|
||||
|
||||
# Holen der Service-Konfiguration
|
||||
description=$(systemctl cat "$SERVICE" 2>/dev/null)
|
||||
if [ $? -ne 0 ]; then
|
||||
echo "Fehler: Service '$SERVICE' konnte nicht gefunden werden."
|
||||
exit 2
|
||||
echo "Fehler: Service '$SERVICE' konnte nicht gefunden werden."
|
||||
exit 2
|
||||
fi
|
||||
|
||||
# Durchsuchen der Ausgabe nach der gesamten Zeile, die mit ExecStart beginnt, und Aufspalten in Strings
|
||||
CONFIG_FILE=$(echo "$description" | grep -oP "(?<=ExecStart=).*" | tr ' ' '\n' | grep -E "$REGEX" | head -n 1)
|
||||
|
||||
if [ -n "$CONFIG_FILE" ]; then
|
||||
if [ -f "$CONFIG_FILE" ]; then
|
||||
echo "Gefundene Datei: $CONFIG_FILE"
|
||||
read -p "Möchten Sie den Inhalt der Datei anzeigen? (Y/n): " CONFIRM
|
||||
if [[ -z "$CONFIRM" || "$CONFIRM" =~ ^[Yy]$ ]]; then
|
||||
cat "$CONFIG_FILE"
|
||||
else
|
||||
echo "Anzeigen der Datei abgebrochen."
|
||||
exit 0
|
||||
fi
|
||||
if [ -f "$CONFIG_FILE" ]; then
|
||||
echo "Gefundene Datei: $CONFIG_FILE"
|
||||
read -p "Möchten Sie den Inhalt der Datei anzeigen? (Y/n): " CONFIRM
|
||||
if [[ -z "$CONFIRM" || "$CONFIRM" =~ ^[Yy]$ ]]; then
|
||||
cat "$CONFIG_FILE"
|
||||
else
|
||||
echo "Fehler: Gefundene Datei '$CONFIG_FILE' existiert nicht oder ist nicht lesbar."
|
||||
exit 3
|
||||
echo "Anzeigen der Datei abgebrochen."
|
||||
exit 0
|
||||
fi
|
||||
else
|
||||
echo "Fehler: Gefundene Datei '$CONFIG_FILE' existiert nicht oder ist nicht lesbar."
|
||||
exit 3
|
||||
fi
|
||||
else
|
||||
echo "Fehler: Keine Datei gefunden, die dem Regex '$REGEX' entspricht."
|
||||
echo "Die aktuelle Ausgabe von 'systemctl cat $SERVICE':"
|
||||
echo "$description"
|
||||
exit 4
|
||||
echo "Fehler: Keine Datei gefunden, die dem Regex '$REGEX' entspricht."
|
||||
echo "Die aktuelle Ausgabe von 'systemctl cat $SERVICE':"
|
||||
echo "$description"
|
||||
exit 4
|
||||
fi
|
||||
|
|
|
@ -20,8 +20,4 @@ with config.lib.topology;
|
|||
cidrv4 = "10.23.42.0/24";
|
||||
};
|
||||
|
||||
networks."tinc.retiolum" = {
|
||||
name = "tinc retiolum";
|
||||
};
|
||||
|
||||
}
|
||||
|
|
|
@ -2,9 +2,9 @@
|
|||
|
||||
# Function to perform a mouse click at specific coordinates
|
||||
click_at() {
|
||||
local x=$1
|
||||
local y=$2
|
||||
xdotool mousemove "$x" "$y" click 1
|
||||
local x=$1
|
||||
local y=$2
|
||||
xdotool mousemove "$x" "$y" click 1
|
||||
}
|
||||
|
||||
# First click coordinates (replace with desired values)
|
||||
|
@ -22,34 +22,34 @@ REPETITIONS=$1
|
|||
|
||||
# Validate that the number of repetitions is a positive integer
|
||||
if ! [[ "$REPETITIONS" =~ ^[0-9]+$ ]]; then
|
||||
echo "Error: Number of repetitions must be a positive integer."
|
||||
exit 1
|
||||
echo "Error: Number of repetitions must be a positive integer."
|
||||
exit 1
|
||||
fi
|
||||
|
||||
# Countdown from 10
|
||||
echo "Starting in..."
|
||||
for (( i=10; i>0; i-- ))
|
||||
do
|
||||
echo "$i..."
|
||||
sleep 1
|
||||
echo "$i..."
|
||||
sleep 1
|
||||
done
|
||||
|
||||
# Repeat the clicks n times
|
||||
for (( i=0; i<$REPETITIONS; i++ ))
|
||||
do
|
||||
# Perform first click
|
||||
click_at $FIRST_X $FIRST_Y
|
||||
# Perform first click
|
||||
click_at $FIRST_X $FIRST_Y
|
||||
|
||||
# Wait for 5 seconds
|
||||
sleep 3
|
||||
# Wait for 5 seconds
|
||||
sleep 3
|
||||
|
||||
# Perform second click
|
||||
click_at $SECOND_X $SECOND_Y
|
||||
sleep 1
|
||||
click_at $SECOND_X $SECOND_Y
|
||||
# Perform second click
|
||||
click_at $SECOND_X $SECOND_Y
|
||||
sleep 1
|
||||
click_at $SECOND_X $SECOND_Y
|
||||
|
||||
# Wait for 5 seconds
|
||||
sleep 1
|
||||
# Wait for 5 seconds
|
||||
sleep 1
|
||||
done
|
||||
|
||||
# Resetting the coordinates transformation matrix to default
|
||||
|
|
|
@ -7,9 +7,6 @@
|
|||
{
|
||||
|
||||
imports = [ ./packages.nix ];
|
||||
# provide overlays
|
||||
# -----------------
|
||||
# nixpkgs.overlays = [ (import ../../pkgs) ];
|
||||
|
||||
# allow un-free
|
||||
# -------------
|
||||
|
|
|
@ -1,17 +0,0 @@
|
|||
{ lib, ... }:
|
||||
{
|
||||
#on-failure = {
|
||||
# enable = true;
|
||||
# plans = {
|
||||
# tinc_private.name = "tinc.private";
|
||||
# tinc_retiolum.name = "tinc.retiolum";
|
||||
# sshd.name = "sshd";
|
||||
# tor.name = "tor";
|
||||
# dnsmasq.name = "dnsmasq";
|
||||
# #backup_on_workhorse.name = "backup.on-workhorse.private";
|
||||
# #backup_on_workout.name = "backup.on-workout.private";
|
||||
# #backup_on_porani.name = "backup.on-porani.private";
|
||||
# syncthing.name = "syncthing";
|
||||
# };
|
||||
#};
|
||||
}
|
Loading…
Add table
Reference in a new issue