This commit is contained in:
Christopher Mühl 2026-01-06 03:08:40 +01:00
parent 9031c734d2
commit 3026b6dbec
No known key found for this signature in database
GPG key ID: 925AC7D69955293F
8 changed files with 49 additions and 48 deletions

View file

@ -2,9 +2,9 @@
programs.niri.settings.spawn-at-startup = [
# this is a funny fix for xdg environment not properly being set and thus
# xdg-open not working properly
{argv = ["systemctl --user restart xdg-desktop-portal"];}
{argv = ["sleep" "5;" "systemctl" "--user" "restart" "xdg-desktop-portal"];}
# open fastfetch by default
{argv = ["kitty --title 'fastfetch' sh -c 'fastfetch; read'"];}
{argv = ["kitty" "--title" "'fastfetch'" "sh" "-c" "'fastfetch; read'"];}
];
}

View file

@ -10,7 +10,7 @@
"Mod+space".action = spawn "fuzzel";
"Mod+e".action = spawn "dolphin";
"Mod+d".action = spawn "zeal"; # Documentation viewer
"Mod+c".action = spawn "${"spawn-term"}/bin/spawn-term";
"Mod+c".action = spawn "${pkgs.harbor.spawn-term}/bin/spawn-term";
"Mod+g".action = spawn "${pkgs.harbor.hg-picker}/bin/hg-picker";
"Mod+q".action = close-window;

View file

@ -52,7 +52,7 @@
wallpaper = {
enabled = true;
overviewEnabled = false;
directory = "/nix/elements/fixtures/wallpapers";
directory = "/nix/harbor/desktops/configurations/home/toph@endurance/wallpapers";
recursiveSearch = false;
randomEnabled = true;
};

View file

@ -45,10 +45,10 @@ in {
open-floating = true;
opacity = 1.0;
min-width = 400; # 115 x 26 columns
max-width = 400;
min-height = 400;
max-height = 400;
min-width = 800; # 115 x 26 columns
max-width = 800;
min-height = 800;
max-height = 800;
}
{
matches = [{title = "ld.toph.so";}];

View file

@ -15,7 +15,7 @@
autoEnable = true;
# TODO: Figure out a way for automatic dark-/light-mode switching
base16Scheme = "${pkgs.base16-schemes}/share/themes/rose-pine-moon.yaml";
base16Scheme = "${pkgs.base16-schemes}/share/themes/rose-pine-dawn.yaml";
targets.firefox.profileNames = ["default" "work" "streaming"];

View file

@ -34,7 +34,7 @@
host = 10.3.0.1
port = 7319
user = christopher
key_file = /home/christopher/.ssh/id_ethnuc
key_file = /home/toph/.ssh/id_ethnuc
'';
fileSystems."/mnt/beryllium" = {

View file

@ -1,45 +1,11 @@
{
pkgs,
config,
pkgs,
lib,
inputs,
...
}:
with lib; let
cfg = config.services.lnxlink;
lnxlink = pkgs.python3Packages.buildPythonApplication {
pname = "lnxlink";
version = "2025.7.0";
pyproject = true;
# Linking my fork here which allows for newer versions of setuptools and wheel.
# Also includes some fixes that make the program actually work with NixOS.
src = pkgs.fetchFromGitHub {
owner = "padarom";
repo = "lnxlink";
rev = "7202e48";
hash = "sha256-E2J1d9D5SJWGEutAPAo1BM98cMzH7QrqIz3yrlXpzGE=";
};
build-system = with pkgs.python3Packages; [setuptools wheel];
dependencies = with pkgs.python3Packages; [
distro
pyyaml
paho-mqtt
requests
psutil
inotify
jeepney
];
meta = {
homepage = "https://github.com/bkbilly/lnxlink";
description = "Effortlessly manage your Linux machine using MQTT.";
license = licenses.mit;
mainProgram = "lnxlink";
};
};
in {
options.services = {
lnxlink = {
@ -48,8 +14,6 @@ in {
};
config = mkIf cfg.enable {
environment.systemPackages = [lnxlink];
systemd.services.lnxlink = {
enable = true;
wantedBy = ["multi-user.target"];
@ -57,7 +21,7 @@ in {
# Note: Logging will also be done to the working directory, so logs will
# be lost upon a restart.
WorkingDirectory = "/tmp";
ExecStart = "${lnxlink}/bin/lnxlink -i -c ${./lnxlink.yaml}";
ExecStart = "${pkgs.harbor.lnxlink}/bin/lnxlink -i -c ${./lnxlink.yaml}";
};
};
};

View file

@ -0,0 +1,37 @@
{
pkgs,
lib,
...
}:
pkgs.python3Packages.buildPythonApplication {
pname = "lnxlink";
version = "2025.7.0";
pyproject = true;
# Linking my fork here which allows for newer versions of setuptools and wheel.
# Also includes some fixes that make the program actually work with NixOS.
src = pkgs.fetchFromGitHub {
owner = "padarom";
repo = "lnxlink";
rev = "7202e48";
hash = "sha256-E2J1d9D5SJWGEutAPAo1BM98cMzH7QrqIz3yrlXpzGE=";
};
build-system = with pkgs.python3Packages; [setuptools wheel];
dependencies = with pkgs.python3Packages; [
distro
pyyaml
paho-mqtt
requests
psutil
inotify
jeepney
];
meta = {
homepage = "https://github.com/bkbilly/lnxlink";
description = "Effortlessly manage your Linux machine using MQTT.";
license = lib.licenses.mit;
mainProgram = "lnxlink";
};
}