summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--README.md2
-rw-r--r--flake.nix4
-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
diff --git a/README.md b/README.md
index a9ba6c2..c025552 100644
--- a/README.md
+++ b/README.md
@@ -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
```
diff --git a/flake.nix b/flake.nix
index 6387411..c65a6b6 100644
--- a/flake.nix
+++ b/flake.nix
@@ -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