Compare commits

..

2 commits

Author SHA1 Message Date
janis 91b6dbb59f
sway/rofi 2025-09-03 17:20:31 +02:00
janis bce366abdc
syncthing? 2025-09-03 17:18:15 +02:00
6 changed files with 65 additions and 8 deletions

View file

@ -16,6 +16,7 @@ in {
./libinput.nix
./git-ssh.nix
./emacs.nix
./syncthing.nix
./development
];

View file

@ -111,7 +111,7 @@
xdg.configFile."hypr/hyprlock.conf" = {
source = "${pkgs.dotfiles}/.config/hypr/hyprlock.conf";
};
# xdg.configFile."hypr/hyprlock.conf" = {
# source = "${pkgs.dotfiles}/.config/hypr/hyprlock.conf";
# };
}

View file

@ -1,6 +1,12 @@
{pkgs, config, ...}: let
{pkgs, config, super-config, ...}: let
theme = import ../data/theme.nix { inherit config; };
in {
xdg.dataFile."rofi/themes/spotlight.rasi" = {
source = if super-config.darkMode then
"${pkgs.dotfiles}/.local/share/rofi/themes/spotlight-dark.rasi"
else
"${pkgs.dotfiles}/.local/share/rofi/themes/spotlight.rasi";
};
xdg.dataFile."rofi/themes/launcher.rasi".text = ''
/**
*
@ -223,10 +229,10 @@ configuration {
combi-modi: "window,drun,run,filebrowser";
kb-remove-char-back: "BackSpace,Shift+BackSpace";
kb-mode-previous: "Control+h";
kb-mode-next: "Control+l";
kb-mode-complete: "";
kb-remove-char-back: "BackSpace,Shift+BackSpace";
}
'';
programs.rofi = {
@ -234,6 +240,6 @@ configuration {
package = pkgs.rofi-wayland;
terminal = "{pkgs.alacritty}/bin/alacritty";
theme = "launcher.rasi";
theme = "spotlight.rasi";
};
}

View file

@ -6,7 +6,7 @@ let
up = "k";
down = "j";
launcher = "${pkgs.rofi}/bin/rofi -config ${config.xdg.configHome}/rofi/launcher.rasi -theme ${config.xdg.dataHome}/rofi/themes/launcher.rasi -show drun -show-icons";
launcher = "${pkgs.rofi}/bin/rofi -config ${config.xdg.configHome}/rofi/launcher.rasi -theme ${config.xdg.dataHome}/rofi/themes/spotlight.rasi -show drun -show-icons";
in {
home.packages = with pkgs; [

41
home/syncthing.nix Normal file
View file

@ -0,0 +1,41 @@
{pkgs, ...}:
let
user = import ../data/user.nix {};
in {
services.syncthing = {
enable = true;
tray.enable = true;
guiAddress = "0.0.0.0:8384";
settings = {
gui = {
user = "admin";
password = "strongpassword";
};
devices = {
# "laptop" = {
# name = "laptop";
# id = "LAPTOPDEVICEID";
# };
"desktop" = {
name = "desktop";
id = "HQ6L2IU-V7YKP4H-NVKMCAQ-6PZ37SJ-ETTXY7Y-2PBH62A-5AJAGPN-OUT3YQW";
};
"nirgendwo" = {
name = "nirgendwo";
id = "UNHUVZP-7HO7R6J-EKSG2QT-CLCFQ7E-GD7AKA7-TMNZT3E-6M56VPS-AGDE5AA";
};
};
folders = {
"Shared" = {
id = "539nt-oefmc";
path = "~/Shared";
devices = [ "nirgendwo" "desktop" ];
};
};
};
};
}

View file

@ -98,7 +98,16 @@
};
};
};
firewall.enable = false;
firewall = {
enable = true;
# ssh: 22 TCP
# cups: 631 TCP
# syncthing:
# 22000 TCP and/or UDP for sync traffic
# 21027/UDP for discovery
allowedTCPPorts = [ 22 22000 631 ];
allowedUDPPorts = [ 22000 21027 ];
};
};
time.timeZone = "Europe/Amsterdam";