update
This commit is contained in:
@@ -171,7 +171,6 @@
|
|||||||
};
|
};
|
||||||
};
|
};
|
||||||
postgresql.enable = true;
|
postgresql.enable = true;
|
||||||
redis.servers."".enable = true; # valkey/redis
|
|
||||||
syncthing = {
|
syncthing = {
|
||||||
enable = true;
|
enable = true;
|
||||||
user = "jpporta";
|
user = "jpporta";
|
||||||
|
|||||||
@@ -1,7 +1,8 @@
|
|||||||
{ config
|
{
|
||||||
, pkgs
|
config,
|
||||||
, lib
|
pkgs,
|
||||||
, ...
|
lib,
|
||||||
|
...
|
||||||
}:
|
}:
|
||||||
|
|
||||||
let
|
let
|
||||||
@@ -157,11 +158,17 @@ in
|
|||||||
user = "jpporta";
|
user = "jpporta";
|
||||||
serverAliveInterval = 30;
|
serverAliveInterval = 30;
|
||||||
};
|
};
|
||||||
|
"pc-ts" = {
|
||||||
|
hostname = "jpporta-nixos";
|
||||||
|
user = "jpporta";
|
||||||
|
serverAliveInterval = 30;
|
||||||
|
};
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
|
|
||||||
services.syncthing.enable = true;
|
services.syncthing.enable = true;
|
||||||
|
services.tailscale.enable = true;
|
||||||
|
|
||||||
home.sessionVariables.TERMINAL = "foot";
|
home.sessionVariables.TERMINAL = "foot";
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -68,7 +68,7 @@ return {
|
|||||||
suffix = suffix .. string.char(math.random(65, 90))
|
suffix = suffix .. string.char(math.random(65, 90))
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
return os.date("%s", os.time()) .. suffix
|
return os.date("%s", os.time()) .. "-" .. suffix
|
||||||
end,
|
end,
|
||||||
follow_url_func = function(url)
|
follow_url_func = function(url)
|
||||||
vim.ui.open(url) -- need Neovim 0.10.0+
|
vim.ui.open(url) -- need Neovim 0.10.0+
|
||||||
|
|||||||
@@ -188,29 +188,6 @@ let
|
|||||||
"$text" "$tooltip" "power-profile-$cls" "power-profile-$cls"
|
"$text" "$tooltip" "power-profile-$cls" "power-profile-$cls"
|
||||||
'';
|
'';
|
||||||
|
|
||||||
waybarStyleSnippet = pkgs.writeText "waybar-power-profile.css" ''
|
|
||||||
/* @import this at the top of your `~/.config/waybar/style.css`:
|
|
||||||
@import url("power-profile.css");
|
|
||||||
*/
|
|
||||||
|
|
||||||
#custom-power-profile {
|
|
||||||
min-width: 12px;
|
|
||||||
padding: 0 4px;
|
|
||||||
font-family: "BerkeleyMono Nerd Font Propo";
|
|
||||||
}
|
|
||||||
|
|
||||||
#custom-power-profile.caffeinated {
|
|
||||||
color: #fabd2f;
|
|
||||||
}
|
|
||||||
|
|
||||||
#custom-power-profile.headless {
|
|
||||||
color: #83a598;
|
|
||||||
}
|
|
||||||
|
|
||||||
#custom-power-profile.normal {
|
|
||||||
color: #ebdbb2;
|
|
||||||
}
|
|
||||||
'';
|
|
||||||
in
|
in
|
||||||
{
|
{
|
||||||
options.custom.power-profiles = {
|
options.custom.power-profiles = {
|
||||||
@@ -229,10 +206,6 @@ in
|
|||||||
# to avoid two hypridle processes fighting over the IPC socket.
|
# to avoid two hypridle processes fighting over the IPC socket.
|
||||||
custom.hypridle.enable = lib.mkForce false;
|
custom.hypridle.enable = lib.mkForce false;
|
||||||
|
|
||||||
# Drop the waybar snippets where the user can @include them.
|
|
||||||
xdg.configFile."waybar/power-profile.jsonc".source = waybarConfigSnippet;
|
|
||||||
xdg.configFile."waybar/power-profile.css".source = waybarStyleSnippet;
|
|
||||||
|
|
||||||
# The systemd user service that runs hypridle with the active config.
|
# The systemd user service that runs hypridle with the active config.
|
||||||
# Started on graphical-session.target so it follows Hyprland's lifecycle.
|
# Started on graphical-session.target so it follows Hyprland's lifecycle.
|
||||||
systemd.user.services.power-profile-hypridle = {
|
systemd.user.services.power-profile-hypridle = {
|
||||||
|
|||||||
Reference in New Issue
Block a user