mirror of
https://github.com/Swarsel/.dotfiles.git
synced 2025-12-06 17:17:22 +01:00
chore: rename hosts
This commit is contained in:
parent
c9e7e493d8
commit
2775193fae
13 changed files with 121 additions and 22 deletions
19
.github/README.md
vendored
19
.github/README.md
vendored
|
|
@ -66,7 +66,7 @@
|
||||||
nix run --experimental-features 'nix-command flakes' github:Swarsel/.dotfiles#swarsel-rebuild -- -u <YOUR_USERNAME>
|
nix run --experimental-features 'nix-command flakes' github:Swarsel/.dotfiles#swarsel-rebuild -- -u <YOUR_USERNAME>
|
||||||
```
|
```
|
||||||
|
|
||||||
This will activate the `chaostheatre` configuration on your system, which is a de-facto mirror of my main configuration with secret-based settings removed.
|
This will activate the `hotel` configuration on your system, which is a de-facto mirror of my main configuration with secret-based settings removed.
|
||||||
Please keep in mind that this limited installer will make local changes to the cloned repository in order to be able to install it (otherwise the builder would fail at fetching my private secrets repository). As such, this should only be used to evaluate the system - if you want to use it longterm, you will need to create a fork and make some changes.
|
Please keep in mind that this limited installer will make local changes to the cloned repository in order to be able to install it (otherwise the builder would fail at fetching my private secrets repository). As such, this should only be used to evaluate the system - if you want to use it longterm, you will need to create a fork and make some changes.
|
||||||
</details>
|
</details>
|
||||||
|
|
||||||
|
|
@ -153,16 +153,21 @@
|
||||||
| Name | Hardware | Use |
|
| Name | Hardware | Use |
|
||||||
|--------------------|-----------------------------------------------------|------------------------------------------------------|
|
|--------------------|-----------------------------------------------------|------------------------------------------------------|
|
||||||
|💻 **pyramid** | Framework Laptop 16, AMD 7940HS, RX 7700S, 64GB RAM | Work laptop |
|
|💻 **pyramid** | Framework Laptop 16, AMD 7940HS, RX 7700S, 64GB RAM | Work laptop |
|
||||||
|💻 **bakery** | Lenovo Ideapad 720S-13IKB | Personal lapto |
|
|💻 **bakery** | Lenovo Ideapad 720S-13IKB | Personal laptop |
|
||||||
|💻 **machpizza** | MacBook Pro 2016 | MacOS sandbox |
|
|💻 **machpizza** | MacBook Pro 2016 | MacOS reference and build sandbox |
|
||||||
|🖥️ **winters** | ASRock J4105-ITX, 32GB RAM | Main homeserver and data storgae |
|
|🏠 **treehouse** | NVIDIA DGX Spark | Workstation, AI playground and home-manager reference|
|
||||||
|🖥️ **milkywell** | Oracle Cloud: VM.Standard.E2.1.Micro | Server for lightweight synchronization tasks |
|
|🖥️ **winters** | ASRock J4105-ITX, 32GB RAM | Secondary homeserver and data storgae |
|
||||||
|🖥️ **moonside** | Oracle Cloud: VM.Standard.A1.Flex, 4 OCPUs, 24GB RAM| Proxy for local services, some lightweight services |
|
|🖥️ **summers** | ASUS Z10PA-D8, 2* Intel Xeon E5-2650 v4, 128GB RAM | Main homeserver running microvms, data storage |
|
||||||
|
|🖥️ **hintbooth** | HUNSN RM02, 8GB RAM | Router |
|
||||||
|
|☁️ **milkywell** | Oracle Cloud: VM.Standard.E2.1.Micro | Server for lightweight synchronization tasks |
|
||||||
|
|☁️ **moonside** | Oracle Cloud: VM.Standard.A1.Flex, 4 OCPUs, 24GB RAM| Proxy for local services, some lightweight services |
|
||||||
|
|☁️ **belchsfactory**| Oracle Cloud: VM.Standard.A1.Flex, 4 OCPUs, 24GB RAM| Hydra builder and nix binary cache |
|
||||||
|
|☁️ **monkeycave** | Oracle Cloud: VM.Standard.A1.Flex, 4 OCPUs, 24GB RAM| Gaming server |
|
||||||
|
|☁️ **eagleland** | Hetzner Cloud: CX23 | Mail server |
|
||||||
|📱 **magicant** | Samsung Galaxy Z Flip 6 | Phone |
|
|📱 **magicant** | Samsung Galaxy Z Flip 6 | Phone |
|
||||||
|💿 **drugstore** | - | ISO installer configuration |
|
|💿 **drugstore** | - | ISO installer configuration |
|
||||||
|❔ **chaotheatre** | - | Demo config for checking out my configurtion |
|
|❔ **chaotheatre** | - | Demo config for checking out my configurtion |
|
||||||
|❔ **toto** | - | Helper configuration for bootstrapping a new system |
|
|❔ **toto** | - | Helper configuration for bootstrapping a new system |
|
||||||
|🏠 **treehouse** | - | Reference configuration for a home-manager only host |
|
|
||||||
</details>
|
</details>
|
||||||
|
|
||||||
## General Nix tips & useful links
|
## General Nix tips & useful links
|
||||||
|
|
|
||||||
|
|
@ -1,7 +1,7 @@
|
||||||
set -eo pipefail
|
set -eo pipefail
|
||||||
|
|
||||||
target_config="chaostheatre"
|
target_config="hotel"
|
||||||
target_hostname="chaostheatre"
|
target_hostname="hotel"
|
||||||
target_user="swarsel"
|
target_user="swarsel"
|
||||||
persist_dir=""
|
persist_dir=""
|
||||||
target_disk="/dev/vda"
|
target_disk="/dev/vda"
|
||||||
|
|
@ -15,7 +15,7 @@ function help_and_exit() {
|
||||||
echo
|
echo
|
||||||
echo "ARGS:"
|
echo "ARGS:"
|
||||||
echo " -n <target_config> specify the nixos config to deploy."
|
echo " -n <target_config> specify the nixos config to deploy."
|
||||||
echo " Default: chaostheatre"
|
echo " Default: hotel"
|
||||||
echo " -d <target_disk> specify disk to install on."
|
echo " -d <target_disk> specify disk to install on."
|
||||||
echo " Default: /dev/vda"
|
echo " Default: /dev/vda"
|
||||||
echo " -u <target_user> specify user to deploy for."
|
echo " -u <target_user> specify user to deploy for."
|
||||||
|
|
@ -152,7 +152,7 @@ if [ "$disk_encryption" -eq 1 ]; then
|
||||||
fi
|
fi
|
||||||
|
|
||||||
green "Setting up disk ..."
|
green "Setting up disk ..."
|
||||||
if [[ $target_config == "chaostheatre" ]]; then
|
if [[ $target_config == "hotel" ]]; then
|
||||||
sudo nix --experimental-features "nix-command flakes" run github:nix-community/disko/v1.10.0 -- --mode destroy,format,mount --flake .#"$target_config" --yes-wipe-all-disks --arg diskDevice "$target_disk"
|
sudo nix --experimental-features "nix-command flakes" run github:nix-community/disko/v1.10.0 -- --mode destroy,format,mount --flake .#"$target_config" --yes-wipe-all-disks --arg diskDevice "$target_disk"
|
||||||
else
|
else
|
||||||
sudo nix --experimental-features "nix-command flakes" run github:nix-community/disko/latest -- --mode destroy,format,mount --flake .#"$target_config" --yes-wipe-all-disks
|
sudo nix --experimental-features "nix-command flakes" run github:nix-community/disko/latest -- --mode destroy,format,mount --flake .#"$target_config" --yes-wipe-all-disks
|
||||||
|
|
|
||||||
|
|
@ -1,6 +1,6 @@
|
||||||
set -eo pipefail
|
set -eo pipefail
|
||||||
|
|
||||||
target_config="chaostheatre"
|
target_config="hotel"
|
||||||
target_user="swarsel"
|
target_user="swarsel"
|
||||||
|
|
||||||
function help_and_exit() {
|
function help_and_exit() {
|
||||||
|
|
@ -12,8 +12,8 @@ function help_and_exit() {
|
||||||
echo "ARGS:"
|
echo "ARGS:"
|
||||||
echo " -d <disk> specify disk to install on."
|
echo " -d <disk> specify disk to install on."
|
||||||
echo " -n <target_config> specify the nixos config to deploy."
|
echo " -n <target_config> specify the nixos config to deploy."
|
||||||
echo " Default: chaostheatre"
|
echo " Default: hotel"
|
||||||
echo " Default: chaostheatre"
|
echo " Default: hotel"
|
||||||
echo " -u <target_user> specify user to deploy for."
|
echo " -u <target_user> specify user to deploy for."
|
||||||
echo " Default: swarsel"
|
echo " Default: swarsel"
|
||||||
echo " -h | --help Print this help."
|
echo " -h | --help Print this help."
|
||||||
|
|
|
||||||
|
|
@ -1,6 +1,6 @@
|
||||||
set -eo pipefail
|
set -eo pipefail
|
||||||
|
|
||||||
target_config="chaostheatre"
|
target_config="hotel"
|
||||||
target_user="swarsel"
|
target_user="swarsel"
|
||||||
|
|
||||||
function help_and_exit() {
|
function help_and_exit() {
|
||||||
|
|
@ -11,7 +11,7 @@ function help_and_exit() {
|
||||||
echo
|
echo
|
||||||
echo "ARGS:"
|
echo "ARGS:"
|
||||||
echo " -n <target_config> specify nixos config to build."
|
echo " -n <target_config> specify nixos config to build."
|
||||||
echo " Default: chaostheatre"
|
echo " Default: hotel"
|
||||||
echo " -u <target_user> specify user to deploy for."
|
echo " -u <target_user> specify user to deploy for."
|
||||||
echo " Default: swarsel"
|
echo " Default: swarsel"
|
||||||
echo " -h | --help Print this help."
|
echo " -h | --help Print this help."
|
||||||
|
|
|
||||||
|
|
@ -25,7 +25,7 @@ in
|
||||||
};
|
};
|
||||||
|
|
||||||
networking = {
|
networking = {
|
||||||
hostName = "chaostheatre";
|
hostName = "hotel";
|
||||||
firewall.enable = true;
|
firewall.enable = true;
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|
@ -47,7 +47,7 @@ in
|
||||||
|
|
||||||
} // lib.optionalAttrs (!minimal) {
|
} // lib.optionalAttrs (!minimal) {
|
||||||
swarselprofiles = {
|
swarselprofiles = {
|
||||||
chaostheatre = true;
|
hotel = true;
|
||||||
minimal = true;
|
minimal = true;
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
|
@ -10,7 +10,7 @@ in
|
||||||
file = {
|
file = {
|
||||||
".bash_history" = {
|
".bash_history" = {
|
||||||
text = ''
|
text = ''
|
||||||
swarsel-install -n chaostheatre
|
swarsel-install -n hotel
|
||||||
'';
|
'';
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
|
|
@ -27,7 +27,7 @@ in
|
||||||
file = {
|
file = {
|
||||||
".bash_history" = {
|
".bash_history" = {
|
||||||
text = ''
|
text = ''
|
||||||
swarsel-install -n chaostheatre
|
swarsel-install -n hotel
|
||||||
'';
|
'';
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
|
|
|
||||||
|
|
@ -37,11 +37,11 @@
|
||||||
(mkConnection "milkywell" "wan")
|
(mkConnection "milkywell" "wan")
|
||||||
(mkConnection "magicant" "wifi")
|
(mkConnection "magicant" "wifi")
|
||||||
(mkConnection "toto" "bootstrapper")
|
(mkConnection "toto" "bootstrapper")
|
||||||
(mkConnection "chaostheatre" "demo host")
|
(mkConnection "hotel" "demo host")
|
||||||
];
|
];
|
||||||
};
|
};
|
||||||
|
|
||||||
chaostheatre.interfaces."demo host" = { };
|
hotel.interfaces."demo host" = { };
|
||||||
toto.interfaces."bootstrapper" = { };
|
toto.interfaces."bootstrapper" = { };
|
||||||
milkywell.interfaces.wan = { };
|
milkywell.interfaces.wan = { };
|
||||||
moonside.interfaces.wan = { };
|
moonside.interfaces.wan = { };
|
||||||
|
|
|
||||||
44
profiles/home/hotel/default.nix
Normal file
44
profiles/home/hotel/default.nix
Normal file
|
|
@ -0,0 +1,44 @@
|
||||||
|
{ lib, config, ... }:
|
||||||
|
{
|
||||||
|
options.swarselprofiles.hotel = lib.mkEnableOption "is this a hotel host";
|
||||||
|
config = lib.mkIf config.swarselprofiles.hotel {
|
||||||
|
swarselmodules = {
|
||||||
|
packages = lib.mkForce true;
|
||||||
|
ownpackages = lib.mkForce true;
|
||||||
|
general = lib.mkForce true;
|
||||||
|
nixgl = lib.mkForce true;
|
||||||
|
sops = lib.mkForce true;
|
||||||
|
yubikey = lib.mkForce false;
|
||||||
|
ssh = lib.mkForce true;
|
||||||
|
stylix = lib.mkForce true;
|
||||||
|
desktop = lib.mkForce true;
|
||||||
|
symlink = lib.mkForce true;
|
||||||
|
env = lib.mkForce false;
|
||||||
|
programs = lib.mkForce true;
|
||||||
|
nix-index = lib.mkForce true;
|
||||||
|
direnv = lib.mkForce true;
|
||||||
|
eza = lib.mkForce true;
|
||||||
|
git = lib.mkForce false;
|
||||||
|
fuzzel = lib.mkForce true;
|
||||||
|
starship = lib.mkForce true;
|
||||||
|
kitty = lib.mkForce true;
|
||||||
|
zsh = lib.mkForce true;
|
||||||
|
zellij = lib.mkForce true;
|
||||||
|
tmux = lib.mkForce true;
|
||||||
|
mail = lib.mkForce false;
|
||||||
|
emacs = lib.mkForce true;
|
||||||
|
waybar = lib.mkForce true;
|
||||||
|
firefox = lib.mkForce true;
|
||||||
|
gnome-keyring = lib.mkForce true;
|
||||||
|
kdeconnect = lib.mkForce true;
|
||||||
|
mako = lib.mkForce true;
|
||||||
|
swayosd = lib.mkForce true;
|
||||||
|
yubikeytouch = lib.mkForce true;
|
||||||
|
sway = lib.mkForce true;
|
||||||
|
kanshi = lib.mkForce true;
|
||||||
|
gpgagent = lib.mkForce true;
|
||||||
|
gammastep = lib.mkForce false;
|
||||||
|
};
|
||||||
|
};
|
||||||
|
|
||||||
|
}
|
||||||
50
profiles/nixos/hotel/default.nix
Normal file
50
profiles/nixos/hotel/default.nix
Normal file
|
|
@ -0,0 +1,50 @@
|
||||||
|
{ lib, config, ... }:
|
||||||
|
{
|
||||||
|
options.swarselprofiles.hotel = lib.mkEnableOption "is this a hotel host";
|
||||||
|
config = lib.mkIf config.swarselprofiles.hotel {
|
||||||
|
swarselmodules = {
|
||||||
|
packages = lib.mkForce true;
|
||||||
|
general = lib.mkForce true;
|
||||||
|
home-manager = lib.mkForce true;
|
||||||
|
xserver = lib.mkForce true;
|
||||||
|
users = lib.mkForce true;
|
||||||
|
sops = lib.mkForce true;
|
||||||
|
env = lib.mkForce true;
|
||||||
|
security = lib.mkForce true;
|
||||||
|
systemdTimeout = lib.mkForce true;
|
||||||
|
hardware = lib.mkForce true;
|
||||||
|
pulseaudio = lib.mkForce true;
|
||||||
|
pipewire = lib.mkForce true;
|
||||||
|
network = lib.mkForce true;
|
||||||
|
time = lib.mkForce true;
|
||||||
|
stylix = lib.mkForce true;
|
||||||
|
programs = lib.mkForce true;
|
||||||
|
zsh = lib.mkForce true;
|
||||||
|
syncthing = lib.mkForce true;
|
||||||
|
blueman = lib.mkForce true;
|
||||||
|
networkDevices = lib.mkForce true;
|
||||||
|
gvfs = lib.mkForce true;
|
||||||
|
interceptionTools = lib.mkForce true;
|
||||||
|
swayosd = lib.mkForce true;
|
||||||
|
ppd = lib.mkForce true;
|
||||||
|
yubikey = lib.mkForce false;
|
||||||
|
ledger = lib.mkForce true;
|
||||||
|
keyboards = lib.mkForce true;
|
||||||
|
login = lib.mkForce true;
|
||||||
|
nix-ld = lib.mkForce true;
|
||||||
|
impermanence = lib.mkForce true;
|
||||||
|
nvd = lib.mkForce true;
|
||||||
|
gnome-keyring = lib.mkForce true;
|
||||||
|
sway = lib.mkForce true;
|
||||||
|
xdg-portal = lib.mkForce true;
|
||||||
|
distrobox = lib.mkForce true;
|
||||||
|
appimage = lib.mkForce true;
|
||||||
|
lid = lib.mkForce true;
|
||||||
|
lowBattery = lib.mkForce true;
|
||||||
|
lanzaboote = lib.mkForce true;
|
||||||
|
autologin = lib.mkForce true;
|
||||||
|
};
|
||||||
|
|
||||||
|
};
|
||||||
|
|
||||||
|
}
|
||||||
Loading…
Add table
Add a link
Reference in a new issue