Skip to content

Commit

Permalink
Rename hosts to new theme
Browse files Browse the repository at this point in the history
  • Loading branch information
joinemm committed Aug 25, 2024
1 parent a7cb79d commit 802a812
Show file tree
Hide file tree
Showing 20 changed files with 35 additions and 34 deletions.
13 changes: 6 additions & 7 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
<img alt="NixOS" src="https://raw.githubusercontent.com/NixOS/nixos-artwork/master/logo/nix-snowflake-white.svg" width="150px"/>


# Snowflake
# My NixOs Empire

My personal NixOS flake, building dotfiles for all of my systems and servers.

Expand All @@ -11,11 +10,11 @@ Shell scripts are built from the flake at <https://github.com/joinemm/bin>

## Hosts

- `zeus` - Desktop workstation/gaming pc
- `x1` - Thinkpad X1 Carbon gen11 work laptop
- `monitoring` - Grafana and prometheus server for monitoring Miso Bot
- `apollo` - Syncthing central sync node and cloud server for web services
- `archimedes` - Raspberry Pi 4B, local homelab for local services such as DNS
- `rome` - Desktop workstation/gaming pc
- `athens` - Thinkpad X1 Carbon gen11 work laptop
- `byzantium` - Grafana and prometheus server for monitoring Miso Bot
- `alexandria` - Syncthing central sync node and cloud server for web services
- `carthage` - Raspberry Pi 4B, local homelab for local services such as DNS

## Installing a configuration

Expand Down
12 changes: 6 additions & 6 deletions deployments.nix
Original file line number Diff line number Diff line change
Expand Up @@ -3,28 +3,28 @@ let
inherit (self.inputs) deploy-rs;

x86 = {
apollo = {
alexandria = {
hostname = "65.21.249.145";
profiles.system = {
user = "root";
path = deploy-rs.lib.x86_64-linux.activate.nixos self.nixosConfigurations.apollo;
path = deploy-rs.lib.x86_64-linux.activate.nixos self.nixosConfigurations.alexandria;
};
};
monitoring = {
byzantium = {
hostname = "65.108.222.239";
profiles.system = {
user = "root";
path = deploy-rs.lib.x86_64-linux.activate.nixos self.nixosConfigurations.monitoring;
path = deploy-rs.lib.x86_64-linux.activate.nixos self.nixosConfigurations.byzantium;
};
};
};

aarch64 = {
archimedes = {
kyoto = {
hostname = "192.168.1.3";
profiles.system = {
user = "root";
path = deploy-rs.lib.aarch64-linux.activate.nixos self.nixosConfigurations.archimedes;
path = deploy-rs.lib.aarch64-linux.activate.nixos self.nixosConfigurations.kyoto;
};
};
};
Expand Down
3 changes: 2 additions & 1 deletion flake.nix
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
{
description = "A Special Snowflake :3";
description = "The strength of an empire is in its cities,
for they are the pillars that uphold its greatness.";

nixConfig = {
extra-substituters = [
Expand Down
1 change: 1 addition & 0 deletions home-modules/common.nix
Original file line number Diff line number Diff line change
Expand Up @@ -45,6 +45,7 @@

# utils
azure-cli
tree
rsync
pciutils
usbutils
Expand Down
2 changes: 1 addition & 1 deletion hosts/apollo/default.nix → hosts/alexandria/default.nix
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ in
})
];

networking.hostName = "apollo";
networking.hostName = "alexandria";
nixpkgs.hostPlatform = "x86_64-linux";
system.stateVersion = "24.05";

Expand Down
File renamed without changes.
2 changes: 1 addition & 1 deletion hosts/x1/default.nix → hosts/athens/default.nix
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@
];

networking = {
hostName = "x1";
hostName = "athens";
hostId = "c08d7d71";
};

Expand Down
File renamed without changes.
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ in
];

nixpkgs.hostPlatform = "x86_64-linux";
networking.hostName = "monitoring";
networking.hostName = "byzantium";

environment.systemPackages = with pkgs; [ busybox ];

Expand Down
File renamed without changes.
24 changes: 12 additions & 12 deletions hosts/default.nix
Original file line number Diff line number Diff line change
Expand Up @@ -6,8 +6,8 @@ let
email = "joonas@rautiola.co";
gpgKey = "0x090EB48A4669AA54";
sshKeys = [
"ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAAIGlFqSQFoSSuAS1IjmWBFXie329I5Aqf71QhVOnLTBG+ joonas@x1"
"ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAAIB3h/Aj66ndKFtqpQ8H53tE9KbbO0obThC0qbQQKFQRr joonas@zeus"
"ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAAIGlFqSQFoSSuAS1IjmWBFXie329I5Aqf71QhVOnLTBG+ joonas@athens"
"ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAAIB3h/Aj66ndKFtqpQ8H53tE9KbbO0obThC0qbQQKFQRr joonas@rome"
];
home = "/home/${user.name}";
};
Expand All @@ -18,25 +18,25 @@ let
in
{
flake.nixosConfigurations = {
x1 = lib.nixosSystem {
athens = lib.nixosSystem {
inherit specialArgs;
modules = [ ./x1 ];
modules = [ ./athens ];
};
zeus = lib.nixosSystem {
rome = lib.nixosSystem {
inherit specialArgs;
modules = [ ./zeus ];
modules = [ ./rome ];
};
apollo = lib.nixosSystem {
alexandria = lib.nixosSystem {
inherit specialArgs;
modules = [ ./apollo ];
modules = [ ./alexandria ];
};
monitoring = lib.nixosSystem {
byzantium = lib.nixosSystem {
inherit specialArgs;
modules = [ ./monitoring ];
modules = [ ./byzantium ];
};
archimedes = lib.nixosSystem {
kyoto = lib.nixosSystem {
inherit specialArgs;
modules = [ ./archimedes ];
modules = [ ./kyoto ];
};
};
}
6 changes: 3 additions & 3 deletions hosts/archimedes/blocky.nix → hosts/kyoto/blocky.nix
Original file line number Diff line number Diff line change
Expand Up @@ -54,9 +54,9 @@
access-point = [ "192.168.1.2" ];
# tailscale addresses
pixel = [ "100.64.0.1" ];
zeus = [ "100.64.0.3" ];
archimedes = [ "100.64.0.3" ];
x1 = [ "100.64.0.4" ];
rome = [ "100.64.0.3" ];
kyoto = [ "100.64.0.3" ];
athens = [ "100.64.0.4" ];
};
};

Expand Down
2 changes: 1 addition & 1 deletion hosts/archimedes/default.nix → hosts/kyoto/default.nix
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@
};

nixpkgs.hostPlatform = "aarch64-linux";
networking.hostName = "archimedes";
networking.hostName = "kyoto";
system.stateVersion = "24.05";
console.enable = false;

Expand Down
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
2 changes: 1 addition & 1 deletion hosts/zeus/default.nix → hosts/rome/default.nix
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@
};

networking = {
hostName = "zeus";
hostName = "rome";
hostId = "c5a9072d";
};

Expand Down
File renamed without changes.
File renamed without changes.

0 comments on commit 802a812

Please sign in to comment.