From 1191cd5a62c1d571e16c0c76414a78311ed2d7ee Mon Sep 17 00:00:00 2001 From: Alexandre LUCAZEAU Date: Mon, 12 Jun 2023 14:30:21 +0200 Subject: [PATCH] ADD kdeconnect --- hosts/dell-5590/nixos/configuration.nix | 13 +++++++++++-- hosts/dell-5590/nixpkgs/configs/i3config | 1 + hosts/dell-5590/nixpkgs/home.nix | 1 + hosts/dell-5590/nixpkgs/kdeconnect.nix | 15 +++++++++++++++ 4 files changed, 28 insertions(+), 2 deletions(-) create mode 100644 hosts/dell-5590/nixpkgs/kdeconnect.nix diff --git a/hosts/dell-5590/nixos/configuration.nix b/hosts/dell-5590/nixos/configuration.nix index 176555a..d211c13 100644 --- a/hosts/dell-5590/nixos/configuration.nix +++ b/hosts/dell-5590/nixos/configuration.nix @@ -119,8 +119,16 @@ enable = true; unmanaged = [ "interface-name:ve-*" ]; }; - firewall.enable = true; - firewall.allowedTCPPorts = [ 24800 6600 1194]; + firewall = { + enable = true; + allowedTCPPorts = [ 24800 6600 1194 ]; + allowedTCPPortRanges = [ + { from = 1714; to = 1764; } # KDE Connect + ]; + allowedUDPPortRanges = [ + { from = 1714; to = 1764; } # KDE Connect + ]; + }; }; i18n.defaultLocale = "fr_FR.UTF-8"; @@ -157,6 +165,7 @@ # nix.gc.dates = "19:00"; # nix.gc.persistent = true; # nix.gc.options = "--delete-older-than 60d"; +nix.settings.auto-optimise-store = true; nix.gc = { automatic = true; dates = "weekly"; diff --git a/hosts/dell-5590/nixpkgs/configs/i3config b/hosts/dell-5590/nixpkgs/configs/i3config index 6c7b6a4..35f7fbd 100644 --- a/hosts/dell-5590/nixpkgs/configs/i3config +++ b/hosts/dell-5590/nixpkgs/configs/i3config @@ -145,6 +145,7 @@ exec --no-startup-id udiskie -t exec --no-startup-id blueman-applet exec --no-startup-id vlc exec --no-startup-id guake +exec --no-startup-id kdeconnect-indicator exec --no-startup-id i3-msg 'workspace $ws9; exec keepassxc;' #exec --no-startup-id i3-msg 'workspace $ws5; exec emacs;' exec --no-startup-id i3-msg 'workspace $ws1; exec ferdi;' diff --git a/hosts/dell-5590/nixpkgs/home.nix b/hosts/dell-5590/nixpkgs/home.nix index f05e98b..cb3002d 100644 --- a/hosts/dell-5590/nixpkgs/home.nix +++ b/hosts/dell-5590/nixpkgs/home.nix @@ -10,6 +10,7 @@ ./mails.nix ./dunst.nix ./bat.nix + ./kdeconnect.nix # ./redshift.nix # ../../../modules/neovim.nix ../../../modules/rust.nix diff --git a/hosts/dell-5590/nixpkgs/kdeconnect.nix b/hosts/dell-5590/nixpkgs/kdeconnect.nix new file mode 100644 index 0000000..fa73467 --- /dev/null +++ b/hosts/dell-5590/nixpkgs/kdeconnect.nix @@ -0,0 +1,15 @@ +{ pkgs, ... }: { + + services.kdeconnect = { + enable = true; + }; +} +# networking.firewall = { +# enable = true; +# allowedTCPPortRanges = [ +# { from = 1714; to = 1764; } # KDE Connect +# ]; +# allowedUDPPortRanges = [ +# { from = 1714; to = 1764; } # KDE Connect +# ]; +# }