rework services & alacritty
move back to alacritty and install various services
This commit is contained in:
@@ -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
23
home/services/emanote.nix
Normal 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;
|
||||
};
|
||||
}
|
||||
17
home/services/flameshot.nix
Normal file
17
home/services/flameshot.nix
Normal 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
5
home/services/fnott.nix
Normal file
@@ -0,0 +1,5 @@
|
||||
{ ... }:
|
||||
|
||||
{
|
||||
services.fnott.enable = true;
|
||||
}
|
||||
54
home/services/kanshi.nix
Normal file
54
home/services/kanshi.nix
Normal 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";
|
||||
# }
|
||||
# ];
|
||||
# }
|
||||
];
|
||||
};
|
||||
}
|
||||
5
home/services/kdeconnect.nix
Normal file
5
home/services/kdeconnect.nix
Normal file
@@ -0,0 +1,5 @@
|
||||
{ ... }:
|
||||
|
||||
{
|
||||
services.kdeconnect.enable = true;
|
||||
}
|
||||
Reference in New Issue
Block a user