From 68502efec2fa7cf37a457ec2bbde495a05102d61 Mon Sep 17 00:00:00 2001 From: DannyDannyDanny Date: Wed, 16 Jul 2025 13:59:18 +0000 Subject: [PATCH] feat: add multiple configurations :sparkles: --- README.md | 6 ++++-- nixos/flake.nix | 12 +++++++++++- 2 files changed, 15 insertions(+), 3 deletions(-) diff --git a/README.md b/README.md index a06316e..c267b98 100644 --- a/README.md +++ b/README.md @@ -38,8 +38,10 @@ gh auth login gh repo clone dannydannydanny/dotfiles # checkout the appropriate branch git checkout feat/wsl-neovim-update -# rebuild system with -sudo nixos-rebuild switch --flake ~/dotfiles/nixos/ +# rebuild WSL nixos using +sudo nixos-rebuild switch --flake ~/dotfiles/nixos#wsl +# rebuild macbook nixos using +# sudo nixos-rebuild switch --flake ~/dotfiles/nixos#macbook ``` ### Clone repo SSH method diff --git a/nixos/flake.nix b/nixos/flake.nix index 8de68e8..8eb5abe 100644 --- a/nixos/flake.nix +++ b/nixos/flake.nix @@ -17,7 +17,17 @@ ... }: { nixosConfigurations = { - nixos = nixpkgs.lib.nixosSystem { + + wsl = nixpkgs.lib.nixosSystem { + modules = [ + nixos-wsl.nixosModules.default + vscode-server.nixosModules.default + ./configuration.nix + # home-manager.nixosModules.default + ]; + }; + + macbookair = nixpkgs.lib.nixosSystem { modules = [ nixos-wsl.nixosModules.default vscode-server.nixosModules.default