Changed hostname to kyren-laptop and added syncthing
This commit is contained in:
@@ -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
|
||||
];
|
||||
};
|
||||
};
|
||||
|
||||
@@ -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 = [ ... ];
|
||||
Reference in New Issue
Block a user