Skip to content

Commit

Permalink
chore: rename grozbok to fighter
Browse files Browse the repository at this point in the history
  • Loading branch information
flexiondotorg committed Oct 1, 2024
1 parent 5cbc4c5 commit 5c34bc0
Show file tree
Hide file tree
Showing 5 changed files with 12 additions and 13 deletions.
6 changes: 3 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -24,8 +24,8 @@ These computers are managed by this Nix flake ❄️
| `steamdeck` | [Steam Deck 64GB LCD] | Zen 2 4c/8t | 16GB | 8 RDNA 2 CUs | | 🎮️ | 🐧 ||
| `crawler` | [QEMU] | - | - | [VirGL] | | 🐄 | ❄️ ||
| `dagger` | [QEMU] | - | - | [VirGL] | | 🐄 | ❄️ ||
| `grozbok` | [Lima] | - | - | - | | 🐄 | 🐧 ||
| `defender` | [Lima] | - | - | - | | 🐄 | 🐧 ||
| `fighter` | [Lima] | - | - | - | | 🐄 | 🐧 ||
| `revan` | [Z390-DESIGNARE] | [Intel Core i9-9900K] | 64GB | Intel UHD Graphics 630 | [NVIDIA T1000] | ☁️ | ❄️ | 🚧 |

<!--
Expand Down Expand Up @@ -234,12 +234,12 @@ Things I currently need to do manually after installation.

- [ ] On macOS run
- `install-homebrew`.
- `create-grozbok`
- `create-defender`
- `create-fighter`
- [ ] On Linux run
- `incus admin init --minimal`
- `create-grozbok`
- `create-defender`
- `create-fighter`

### Themes

Expand Down
2 changes: 1 addition & 1 deletion flake.nix
Original file line number Diff line number Diff line change
Expand Up @@ -128,8 +128,8 @@
username = "deck";
};
# VMs
"martin@grozbok" = helper.mkHome { hostname = "grozbok"; };
"martin@defender" = helper.mkHome { hostname = "defender"; };
"martin@fighter" = helper.mkHome { hostname = "fighter"; };
"martin@crawler" = helper.mkHome { hostname = "crawler"; };
"martin@dagger" = helper.mkHome {
hostname = "dagger";
Expand Down
7 changes: 3 additions & 4 deletions home-manager/_mixins/scripts/lima-create/default.nix
Original file line number Diff line number Diff line change
Expand Up @@ -17,16 +17,15 @@ in
{
home = {
file = {
"${config.home.homeDirectory}/.lima/_templates/ubuntu-24.yml".text = builtins.readFile ./ubuntu-24.yml;
"${config.home.homeDirectory}/.lima/_templates/ubuntu-22.yml".text = builtins.readFile ./ubuntu-22.yml;
"${config.home.homeDirectory}/.lima/_templates/ubuntu-24.yml".text = builtins.readFile ./ubuntu-24.yml;
};
packages = with pkgs; [ shellApplication ];
};
programs.fish.shellAliases = {
create-grozbok = "lima-create grozbok";
create-defender = "lima-create defender";
grozbok = "limactl shell grozbok";
create-fighter = "lima-create fighter";
defender = "limactl shell defender";
fighter = "limactl shell fighter";
};

}
8 changes: 4 additions & 4 deletions home-manager/_mixins/scripts/lima-create/lima-create.sh
Original file line number Diff line number Diff line change
Expand Up @@ -44,12 +44,12 @@ function lima_create() {
VM_MEMORY=$(echo "${MEMORY} / 2" | bc)
fi

if [ "${VM_NAME}" = "grozbok" ]; then
YAML="${HOME}/.lima/_templates/ubuntu-24.yml"
VM_DISK=64
elif [ "${VM_NAME}" = "defender" ]; then
if [ "${VM_NAME}" = "defender" ]; then
YAML="${HOME}/.lima/_templates/ubuntu-22.yml"
VM_DISK=64
elif [ "${VM_NAME}" = "fighter" ]; then
YAML="${HOME}/.lima/_templates/ubuntu-24.yml"
VM_DISK=64
else
TEMPLATE="ubuntu"
VM_DISK=32
Expand Down
2 changes: 1 addition & 1 deletion lib/helpers.nix
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@
let
isISO = builtins.substring 0 4 hostname == "iso-";
isInstall = !isISO;
isLima = hostname == "grozbok" || hostname == "defender";
isLima = hostname == "defender" || hostname == "fighter";
isWorkstation = builtins.isString desktop;
in
inputs.home-manager.lib.homeManagerConfiguration {
Expand Down

0 comments on commit 5c34bc0

Please sign in to comment.