From a101b7ab25aa62912b7b751f4d3460855c262fab Mon Sep 17 00:00:00 2001 From: SebastianStork Date: Sun, 21 Apr 2024 21:23:44 +0200 Subject: [PATCH] Rename the hosts --- .sops.yaml | 12 ++++++------ flake.nix | 12 ++++++------ hosts/{seb-laptop => inspiron}/default.nix | 2 +- hosts/{seb-laptop => inspiron}/hardware.nix | 0 hosts/{seb-laptop => inspiron}/secrets.yaml | 0 hosts/{seb-desktop => north}/default.nix | 2 +- hosts/{seb-desktop => north}/disko.nix | 0 hosts/{seb-desktop => north}/hardware.nix | 0 hosts/{seb-desktop => north}/secrets.yaml | 0 users/seb/{@seb-laptop.nix => @inspiron.nix} | 0 users/seb/{@seb-desktop.nix => @north.nix} | 0 11 files changed, 14 insertions(+), 14 deletions(-) rename hosts/{seb-laptop => inspiron}/default.nix (95%) rename hosts/{seb-laptop => inspiron}/hardware.nix (100%) rename hosts/{seb-laptop => inspiron}/secrets.yaml (100%) rename hosts/{seb-desktop => north}/default.nix (94%) rename hosts/{seb-desktop => north}/disko.nix (100%) rename hosts/{seb-desktop => north}/hardware.nix (100%) rename hosts/{seb-desktop => north}/secrets.yaml (100%) rename users/seb/{@seb-laptop.nix => @inspiron.nix} (100%) rename users/seb/{@seb-desktop.nix => @north.nix} (100%) diff --git a/.sops.yaml b/.sops.yaml index 8858106..151c1ee 100644 --- a/.sops.yaml +++ b/.sops.yaml @@ -1,12 +1,12 @@ keys: - - &seb-desktop age18x6herevmcuhcmeh47ll6p9ck9zk4ga6gfxwlc8yl49rwjxm7qusylwfgc - - &seb-laptop age1jl9s4vp78wuwymjxaje6fg4ax0gg5aq8pn8khfmtn5rvap0d83tqfr05dv + - &north age18x6herevmcuhcmeh47ll6p9ck9zk4ga6gfxwlc8yl49rwjxm7qusylwfgc + - &inspiron age1jl9s4vp78wuwymjxaje6fg4ax0gg5aq8pn8khfmtn5rvap0d83tqfr05dv creation_rules: - - path_regex: hosts/seb-desktop/secrets.yaml$ + - path_regex: hosts/north/secrets.yaml$ key_groups: - age: - - *seb-desktop - - path_regex: hosts/seb-laptop/secrets.yaml$ + - *north + - path_regex: hosts/inspiron/secrets.yaml$ key_groups: - age: - - *seb-laptop \ No newline at end of file + - *inspiron \ No newline at end of file diff --git a/flake.nix b/flake.nix index d809afc..32f67b0 100644 --- a/flake.nix +++ b/flake.nix @@ -40,18 +40,18 @@ pkgs = nixpkgs.legacyPackages.${system}; in { nixosConfigurations = { - seb-desktop = nixpkgs.lib.nixosSystem { + north = nixpkgs.lib.nixosSystem { specialArgs = {inherit inputs;}; modules = [ - ./hosts/seb-desktop - "${./.}/users/seb/@seb-desktop.nix" + ./hosts/north + "${./.}/users/seb/@north.nix" ]; }; - seb-laptop = nixpkgs.lib.nixosSystem { + inspiron = nixpkgs.lib.nixosSystem { specialArgs = {inherit inputs;}; modules = [ - ./hosts/seb-laptop - "${./.}/users/seb/@seb-laptop.nix" + ./hosts/inspiron + "${./.}/users/seb/@inspiron.nix" ]; }; }; diff --git a/hosts/seb-laptop/default.nix b/hosts/inspiron/default.nix similarity index 95% rename from hosts/seb-laptop/default.nix rename to hosts/inspiron/default.nix index ade1f4b..011f5a3 100644 --- a/hosts/seb-laptop/default.nix +++ b/hosts/inspiron/default.nix @@ -4,7 +4,7 @@ ./hardware.nix ]; - networking.hostName = "seb-laptop"; + networking.hostName = "inspiron"; environment.sessionVariables.FLAKE = "/home/seb/Projects/nixos/my-config"; diff --git a/hosts/seb-laptop/hardware.nix b/hosts/inspiron/hardware.nix similarity index 100% rename from hosts/seb-laptop/hardware.nix rename to hosts/inspiron/hardware.nix diff --git a/hosts/seb-laptop/secrets.yaml b/hosts/inspiron/secrets.yaml similarity index 100% rename from hosts/seb-laptop/secrets.yaml rename to hosts/inspiron/secrets.yaml diff --git a/hosts/seb-desktop/default.nix b/hosts/north/default.nix similarity index 94% rename from hosts/seb-desktop/default.nix rename to hosts/north/default.nix index 2fd57f3..7fb402c 100644 --- a/hosts/seb-desktop/default.nix +++ b/hosts/north/default.nix @@ -4,7 +4,7 @@ ./hardware.nix ]; - networking.hostName = "seb-desktop"; + networking.hostName = "north"; environment.sessionVariables.FLAKE = "/home/seb/Projects/nixos/my-config"; diff --git a/hosts/seb-desktop/disko.nix b/hosts/north/disko.nix similarity index 100% rename from hosts/seb-desktop/disko.nix rename to hosts/north/disko.nix diff --git a/hosts/seb-desktop/hardware.nix b/hosts/north/hardware.nix similarity index 100% rename from hosts/seb-desktop/hardware.nix rename to hosts/north/hardware.nix diff --git a/hosts/seb-desktop/secrets.yaml b/hosts/north/secrets.yaml similarity index 100% rename from hosts/seb-desktop/secrets.yaml rename to hosts/north/secrets.yaml diff --git a/users/seb/@seb-laptop.nix b/users/seb/@inspiron.nix similarity index 100% rename from users/seb/@seb-laptop.nix rename to users/seb/@inspiron.nix diff --git a/users/seb/@seb-desktop.nix b/users/seb/@north.nix similarity index 100% rename from users/seb/@seb-desktop.nix rename to users/seb/@north.nix