Fix niri
This commit is contained in:
parent
9031c734d2
commit
3026b6dbec
8 changed files with 49 additions and 48 deletions
|
|
@ -2,9 +2,9 @@
|
||||||
programs.niri.settings.spawn-at-startup = [
|
programs.niri.settings.spawn-at-startup = [
|
||||||
# this is a funny fix for xdg environment not properly being set and thus
|
# this is a funny fix for xdg environment not properly being set and thus
|
||||||
# xdg-open not working properly
|
# 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
|
# open fastfetch by default
|
||||||
{argv = ["kitty --title 'fastfetch' sh -c 'fastfetch; read'"];}
|
{argv = ["kitty" "--title" "'fastfetch'" "sh" "-c" "'fastfetch; read'"];}
|
||||||
];
|
];
|
||||||
}
|
}
|
||||||
|
|
|
||||||
|
|
@ -10,7 +10,7 @@
|
||||||
"Mod+space".action = spawn "fuzzel";
|
"Mod+space".action = spawn "fuzzel";
|
||||||
"Mod+e".action = spawn "dolphin";
|
"Mod+e".action = spawn "dolphin";
|
||||||
"Mod+d".action = spawn "zeal"; # Documentation viewer
|
"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+g".action = spawn "${pkgs.harbor.hg-picker}/bin/hg-picker";
|
||||||
|
|
||||||
"Mod+q".action = close-window;
|
"Mod+q".action = close-window;
|
||||||
|
|
|
||||||
|
|
@ -52,7 +52,7 @@
|
||||||
wallpaper = {
|
wallpaper = {
|
||||||
enabled = true;
|
enabled = true;
|
||||||
overviewEnabled = false;
|
overviewEnabled = false;
|
||||||
directory = "/nix/elements/fixtures/wallpapers";
|
directory = "/nix/harbor/desktops/configurations/home/toph@endurance/wallpapers";
|
||||||
recursiveSearch = false;
|
recursiveSearch = false;
|
||||||
randomEnabled = true;
|
randomEnabled = true;
|
||||||
};
|
};
|
||||||
|
|
|
||||||
|
|
@ -45,10 +45,10 @@ in {
|
||||||
open-floating = true;
|
open-floating = true;
|
||||||
opacity = 1.0;
|
opacity = 1.0;
|
||||||
|
|
||||||
min-width = 400; # 115 x 26 columns
|
min-width = 800; # 115 x 26 columns
|
||||||
max-width = 400;
|
max-width = 800;
|
||||||
min-height = 400;
|
min-height = 800;
|
||||||
max-height = 400;
|
max-height = 800;
|
||||||
}
|
}
|
||||||
{
|
{
|
||||||
matches = [{title = "ld.toph.so";}];
|
matches = [{title = "ld.toph.so";}];
|
||||||
|
|
|
||||||
|
|
@ -15,7 +15,7 @@
|
||||||
autoEnable = true;
|
autoEnable = true;
|
||||||
|
|
||||||
# TODO: Figure out a way for automatic dark-/light-mode switching
|
# 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"];
|
targets.firefox.profileNames = ["default" "work" "streaming"];
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -34,7 +34,7 @@
|
||||||
host = 10.3.0.1
|
host = 10.3.0.1
|
||||||
port = 7319
|
port = 7319
|
||||||
user = christopher
|
user = christopher
|
||||||
key_file = /home/christopher/.ssh/id_ethnuc
|
key_file = /home/toph/.ssh/id_ethnuc
|
||||||
'';
|
'';
|
||||||
|
|
||||||
fileSystems."/mnt/beryllium" = {
|
fileSystems."/mnt/beryllium" = {
|
||||||
|
|
|
||||||
|
|
@ -1,45 +1,11 @@
|
||||||
{
|
{
|
||||||
pkgs,
|
|
||||||
config,
|
config,
|
||||||
|
pkgs,
|
||||||
lib,
|
lib,
|
||||||
inputs,
|
|
||||||
...
|
...
|
||||||
}:
|
}:
|
||||||
with lib; let
|
with lib; let
|
||||||
cfg = config.services.lnxlink;
|
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 {
|
in {
|
||||||
options.services = {
|
options.services = {
|
||||||
lnxlink = {
|
lnxlink = {
|
||||||
|
|
@ -48,8 +14,6 @@ in {
|
||||||
};
|
};
|
||||||
|
|
||||||
config = mkIf cfg.enable {
|
config = mkIf cfg.enable {
|
||||||
environment.systemPackages = [lnxlink];
|
|
||||||
|
|
||||||
systemd.services.lnxlink = {
|
systemd.services.lnxlink = {
|
||||||
enable = true;
|
enable = true;
|
||||||
wantedBy = ["multi-user.target"];
|
wantedBy = ["multi-user.target"];
|
||||||
|
|
@ -57,7 +21,7 @@ in {
|
||||||
# Note: Logging will also be done to the working directory, so logs will
|
# Note: Logging will also be done to the working directory, so logs will
|
||||||
# be lost upon a restart.
|
# be lost upon a restart.
|
||||||
WorkingDirectory = "/tmp";
|
WorkingDirectory = "/tmp";
|
||||||
ExecStart = "${lnxlink}/bin/lnxlink -i -c ${./lnxlink.yaml}";
|
ExecStart = "${pkgs.harbor.lnxlink}/bin/lnxlink -i -c ${./lnxlink.yaml}";
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
|
|
|
||||||
37
packages/lnxlink/package.nix
Normal file
37
packages/lnxlink/package.nix
Normal 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";
|
||||||
|
};
|
||||||
|
}
|
||||||
Loading…
Add table
Reference in a new issue