ADD kdeconnect

FIX Emacs configuration
main
Alexandre LUCAZEAU 2023-06-23 19:47:16 +02:00
parent e766f11ae2
commit d712571efb
4 changed files with 20 additions and 9 deletions

View File

@ -7,10 +7,11 @@
./starship.nix
#./mails.nix
./mpd.nix
./emacs.nix
# ./emacs.nix
./i3status.nix
./himalaya.nix
../../../modules/tmux.nix
../../../modules/emacs.nix
];
home.stateVersion = "21.11";
home.username = "alexandre";

View File

@ -1,3 +1,4 @@
{ config, pkgs, ... }:{
programs.i3status-rust = {
@ -35,6 +36,11 @@
{
block = "battery";
}
{
block = "kdeconnect";
format = " $icon {$bat_icon $bat_charge |}{$notif_icon |}{$network_icon$network_strength $network_type |}";
bat_good = 101;
}
{
block = "time";
interval = 60;

View File

@ -33,5 +33,6 @@
vlc
guake
graphviz
kdeconnect
];
}

View File

@ -70,8 +70,6 @@
nixpkgs.config.allowUnfree = true;
networking.firewall.enable = true;
i18n.defaultLocale = "fr_FR.UTF-8";
console = {
font = "Lat2-Terminus16";
@ -182,12 +180,17 @@ fonts = {
services.openssh.enable = true;
services.openssh.settings.PermitRootLogin = "no";
# Open ports in the firewall.
# networking.firewall.allowedTCPPorts = [ ... ];
networking.firewall.allowedTCPPorts = [ 24800 6600 ];
# networking.firewall.allowedUDPPorts = [ ... ];
# Or disable the firewall altogether.
# networking.firewall.enable = false;
networking.firewall = {
enable = true;
allowedTCPPorts = [ 24800 6600 ];
# For kdeconnect
allowedTCPPortRanges = [
{ from = 1714; to = 1764; } # KDE Connect
];
allowedUDPPortRanges = [
{ from = 1714; to = 1764; } # KDE Connect
];
};
# This value determines the NixOS release from which the default
# settings for stateful data, like file locations and database versions
# on your system were taken. Its perfectly fine and recommended to leave