summaryrefslogtreecommitdiff
path: root/hosts
diff options
context:
space:
mode:
authorKyren223 <Kyren223@proton.me>2024-12-31 23:30:15 +0200
committerKyren223 <Kyren223@proton.me>2024-12-31 23:30:15 +0200
commit6daf7a47e35d9fac1c2ed284222df90ac27e041e (patch)
treefbe10515c74fb40b533fb753c33c484542ad218a /hosts
parent4d995c5ed8ddf005192b9250eb930d12f88446a9 (diff)
Changed hostname to kyren-laptop and added syncthing
Diffstat (limited to 'hosts')
-rw-r--r--hosts/kyren-laptop/configuration.nix (renamed from hosts/laptop-nixos/configuration.nix)13
-rw-r--r--hosts/kyren-laptop/hardware-configuration.nix (renamed from hosts/laptop-nixos/hardware-configuration.nix)0
-rw-r--r--hosts/kyren-laptop/home.nix (renamed from hosts/laptop-nixos/home.nix)0
3 files changed, 12 insertions, 1 deletions
diff --git a/hosts/laptop-nixos/configuration.nix b/hosts/kyren-laptop/configuration.nix
index 3047df5..875ceac 100644
--- a/hosts/laptop-nixos/configuration.nix
+++ b/hosts/kyren-laptop/configuration.nix
@@ -8,7 +8,7 @@
boot.loader.systemd-boot.enable = true;
boot.loader.efi.canTouchEfiVariables = true;
- networking.hostName = "laptop-nixos";
+ networking.hostName = "kyren-laptop";
# networking.wireless.enable = true; # Enables wireless support via wpa_supplicant.
nix.settings.experimental-features = [ "nix-command" "flakes" ];
@@ -186,6 +186,17 @@
virtualisation.libvirtd.enable = true;
virtualisation.spiceUSBRedirection.enable = true;
+ services.syncthing.enable = true;
+ services.syncthing = {
+ group = "users";
+ user = "kyren";
+ dataDir = "/home/kyren";
+ configDir = "/home/kyren/.config/syncthing";
+ };
+ systemd.tmpfiles.rules = [
+ "d /home/kyren/.config/syncthing 0700 kyren users"
+ ];
+
# Open ports in the firewall.
# networking.firewall.allowedTCPPorts = [ ... ];
# networking.firewall.allowedUDPPorts = [ ... ];
diff --git a/hosts/laptop-nixos/hardware-configuration.nix b/hosts/kyren-laptop/hardware-configuration.nix
index ac755f7..ac755f7 100644
--- a/hosts/laptop-nixos/hardware-configuration.nix
+++ b/hosts/kyren-laptop/hardware-configuration.nix
diff --git a/hosts/laptop-nixos/home.nix b/hosts/kyren-laptop/home.nix
index 6707ae1..6707ae1 100644
--- a/hosts/laptop-nixos/home.nix
+++ b/hosts/kyren-laptop/home.nix