From 5712f3bc442ea7bc751e9fe02de008c46c4e3f6a Mon Sep 17 00:00:00 2001 From: Jimbo Date: Fri, 28 Feb 2025 15:00:12 -0500 Subject: [PATCH] Add aarch64 home manager option --- flake.nix | 7 +++++-- modules/system/default.nix | 4 ++-- 2 files changed, 7 insertions(+), 4 deletions(-) diff --git a/flake.nix b/flake.nix index 3ea84bb..9d2fe3e 100644 --- a/flake.nix +++ b/flake.nix @@ -68,7 +68,10 @@ rubble = mkNix [ ./hosts/rubble ]; # ROCKPro64 SBC }; - # home-manager switch --flake /etc/nixos#username - homeConfigurations."main" = mkHome [ ./modules/home ] nixpkgs.legacyPackages.x86_64-linux; + # home-manager switch --flake /etc/nixos#arch + homeConfigurations = { + x86 = mkHome [ ./modules/home ] nixpkgs.legacyPackages.x86_64-linux; + aarch = mkHome [ ./modules/home ] nixpkgs.legacyPackages.aarch64-linux; + }; }; } diff --git a/modules/system/default.nix b/modules/system/default.nix index b9ef86a..31cc55c 100644 --- a/modules/system/default.nix +++ b/modules/system/default.nix @@ -10,7 +10,7 @@ ]; options.system = with lib; { - desktop.enable = lib.mkEnableOption "Enable desktop apps and services"; - server.enable = lib.mkEnableOption "Enable server apps and services"; + desktop.enable = mkEnableOption "Enable desktop apps and services"; + server.enable = mkEnableOption "Enable server apps and services"; }; }