Changed hostname to kyren-laptop and added syncthing

This commit is contained in:
2024-12-31 23:30:15 +02:00
parent 4d995c5ed8
commit 6daf7a47e3
5 changed files with 15 additions and 4 deletions

View File

@@ -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
```

View File

@@ -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
];
};
};

View File

@@ -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 = [ ... ];