From dbd3c3ff19141c007afd33c2da8caa57ab7c552a Mon Sep 17 00:00:00 2001 From: SebastianStork Date: Tue, 2 Apr 2024 21:37:35 +0200 Subject: [PATCH] Change the laptop hostname to seb-laptop --- .sops.yaml | 6 +++--- flake.nix | 6 +++--- hosts/{dell-laptop => seb-laptop}/default.nix | 2 +- hosts/{dell-laptop => seb-laptop}/hardware.nix | 0 hosts/{dell-laptop => seb-laptop}/secrets.yaml | 0 modules/system/syncthing.nix | 4 ++-- users/seb/{@dell-laptop.nix => @seb-laptop.nix} | 0 7 files changed, 9 insertions(+), 9 deletions(-) rename hosts/{dell-laptop => seb-laptop}/default.nix (94%) rename hosts/{dell-laptop => seb-laptop}/hardware.nix (100%) rename hosts/{dell-laptop => seb-laptop}/secrets.yaml (100%) rename users/seb/{@dell-laptop.nix => @seb-laptop.nix} (100%) diff --git a/.sops.yaml b/.sops.yaml index 9cd38a3..8858106 100644 --- a/.sops.yaml +++ b/.sops.yaml @@ -1,12 +1,12 @@ keys: - &seb-desktop age18x6herevmcuhcmeh47ll6p9ck9zk4ga6gfxwlc8yl49rwjxm7qusylwfgc - - &dell-laptop age1jl9s4vp78wuwymjxaje6fg4ax0gg5aq8pn8khfmtn5rvap0d83tqfr05dv + - &seb-laptop age1jl9s4vp78wuwymjxaje6fg4ax0gg5aq8pn8khfmtn5rvap0d83tqfr05dv creation_rules: - path_regex: hosts/seb-desktop/secrets.yaml$ key_groups: - age: - *seb-desktop - - path_regex: hosts/dell-laptop/secrets.yaml$ + - path_regex: hosts/seb-laptop/secrets.yaml$ key_groups: - age: - - *dell-laptop \ No newline at end of file + - *seb-laptop \ No newline at end of file diff --git a/flake.nix b/flake.nix index 5e5654c..57f86c6 100644 --- a/flake.nix +++ b/flake.nix @@ -35,11 +35,11 @@ ./users/seb ]; }; - dell-laptop = nixpkgs.lib.nixosSystem { + seb-laptop = nixpkgs.lib.nixosSystem { specialArgs = {inherit inputs;}; modules = [ - ./hosts/dell-laptop - "${./.}/users/seb/@dell-laptop.nix" + ./hosts/seb-laptop + "${./.}/users/seb/@seb-laptop.nix" ]; }; }; diff --git a/hosts/dell-laptop/default.nix b/hosts/seb-laptop/default.nix similarity index 94% rename from hosts/dell-laptop/default.nix rename to hosts/seb-laptop/default.nix index 80cfb61..a70b1ff 100644 --- a/hosts/dell-laptop/default.nix +++ b/hosts/seb-laptop/default.nix @@ -4,7 +4,7 @@ ./hardware.nix ]; - networking.hostName = "dell-laptop"; + networking.hostName = "seb-laptop"; environment.sessionVariables.FLAKE = "/home/seb/Projects/nixos/my-config"; diff --git a/hosts/dell-laptop/hardware.nix b/hosts/seb-laptop/hardware.nix similarity index 100% rename from hosts/dell-laptop/hardware.nix rename to hosts/seb-laptop/hardware.nix diff --git a/hosts/dell-laptop/secrets.yaml b/hosts/seb-laptop/secrets.yaml similarity index 100% rename from hosts/dell-laptop/secrets.yaml rename to hosts/seb-laptop/secrets.yaml diff --git a/modules/system/syncthing.nix b/modules/system/syncthing.nix index ab6a552..9a4143a 100644 --- a/modules/system/syncthing.nix +++ b/modules/system/syncthing.nix @@ -19,11 +19,11 @@ settings = { devices = { seb-desktop.id = "DIPH5BN-N2XV57S-23W63KD-UZOZ3UI-RB24QRJ-VVPD4YM-ZMFZIXN-GPX4YA4"; - dell-laptop.id = "GUXHL6J-J2HWYNN-7JZJ5CN-6LPYGJD-H7GYRLQ-ORZ4PJJ-5K4WT7I-MELMIQO"; + seb-laptop.id = "GUXHL6J-J2HWYNN-7JZJ5CN-6LPYGJD-H7GYRLQ-ORZ4PJJ-5K4WT7I-MELMIQO"; }; folders = let - allDevices = ["seb-desktop" "dell-laptop"]; + allDevices = ["seb-desktop" "seb-laptop"]; staggeredVersioning = { type = "staggered"; params = { diff --git a/users/seb/@dell-laptop.nix b/users/seb/@seb-laptop.nix similarity index 100% rename from users/seb/@dell-laptop.nix rename to users/seb/@seb-laptop.nix