diff options
| author | Kyren223 <Kyren223@proton.me> | 2024-12-31 23:30:15 +0200 |
|---|---|---|
| committer | Kyren223 <Kyren223@proton.me> | 2024-12-31 23:30:15 +0200 |
| commit | 6daf7a47e35d9fac1c2ed284222df90ac27e041e (patch) | |
| tree | fbe10515c74fb40b533fb753c33c484542ad218a | |
| parent | 4d995c5ed8ddf005192b9250eb930d12f88446a9 (diff) | |
Changed hostname to kyren-laptop and added syncthing
| -rw-r--r-- | README.md | 2 | ||||
| -rw-r--r-- | flake.nix | 4 | ||||
| -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 |
5 files changed, 15 insertions, 4 deletions
@@ -31,5 +31,5 @@ You may need to add the `--adopt` flag to stow to override your existing dotfile If using NixOS, rebuild your system using the flake ```sh -sudo nixos-rebuild switch --flake ~/dotfiles#laptop-nixos +sudo nixos-rebuild switch --flake ~/dotfiles#kyren-laptop ``` @@ -20,10 +20,10 @@ outputs = { self, nixpkgs, ... }@inputs: { nixosConfigurations = { - laptop-nixos = nixpkgs.lib.nixosSystem { + kyren-laptop = nixpkgs.lib.nixosSystem { specialArgs = {inherit inputs;}; modules = [ - ./hosts/laptop-nixos/configuration.nix + ./hosts/kyren-laptop/configuration.nix ]; }; }; 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 |
