rework services & alacritty

move back to alacritty and install various services
This commit is contained in:
2026-03-18 15:39:27 +01:00
parent e0fb822650
commit e5347f74f8
21 changed files with 194 additions and 86 deletions

View File

@@ -2,9 +2,14 @@
{
imports = [
./ssh-agent.nix
./emanote.nix
./flameshot.nix
./fnott.nix
./gpg-agent.nix
./hypridle.nix
./kanshi.nix
./kdeconnect.nix
./nextcloud.nix
./ssh-agent.nix
];
}

23
home/services/emanote.nix Normal file
View File

@@ -0,0 +1,23 @@
{ config, ... }:
let
emanote = import (
builtins.fetchTarball {
url = "https://github.com/srid/emanote/archive/master.tar.gz";
sha256 = "0kr8bbq1awg2c2ra1mwjxqa9m7is9b6cdksvh48g4w354h5pqbnv";
}
);
in
{
imports = [ emanote.homeManagerModule ];
services.emanote = {
enable = true;
# host = "127.0.0.1"; # default listen address is 127.0.0.1
# port = 7000; # default http port is 7000
notes = [
"/home/elias/zettelkasten"
];
# TODO: currentSystem
package = emanote.packages."x86_64-linux".default;
};
}

View File

@@ -0,0 +1,17 @@
{ pkgs, ... }:
{
home.packages = with pkgs; [ grim ];
services.flameshot = {
enable = true;
settings = {
General = {
disabledTrayIcon = true;
showDesktopNotification = false;
showHelp = false;
showStartupLaunchMessage = false;
useGrimAdapter = true;
};
};
};
}

5
home/services/fnott.nix Normal file
View File

@@ -0,0 +1,5 @@
{ ... }:
{
services.fnott.enable = true;
}

54
home/services/kanshi.nix Normal file
View File

@@ -0,0 +1,54 @@
{ pkgs, ... }:
{
home.packages = with pkgs; [ kanshi ];
services.kanshi = {
enable = true;
systemdTarget = "graphical-session.target";
settings = [
{
profile.name = "laptop undocked";
profile.outputs = [ { criteria = "eDP-1"; } ];
profile.exec = [
"systemctl --user start hypridle.service"
];
}
{
profile.name = "laptop docked";
profile.exec = [
"systemctl --user start hypridle.service"
];
profile.outputs = [
{
criteria = "eDP-1";
mode = "1920x1080@60Hz";
position = "1920,0";
}
{
criteria = "HDMI-A-1";
mode = "1920x1080@60Hz";
position = "0,0";
}
];
}
# {
# profile.name = "desktop";
# profile.exec = [
# "systemctl --user start hypridle.service"
# ];
# profile.outputs = [
# {
# criteria = "eDP-1";
# mode = "1920x1080@60Hz";
# position = "1920,0";
# }
# {
# criteria = "HDMI-A-1";
# mode = "1920x1080@60Hz";
# position = "0,0";
# }
# ];
# }
];
};
}

View File

@@ -0,0 +1,5 @@
{ ... }:
{
services.kdeconnect.enable = true;
}