mirror of
https://github.com/lightly-toasted/nix-config.git
synced 2025-12-10 03:49:44 +00:00
feat: add aarch64 support
This commit is contained in:
parent
eaa6a4fdec
commit
08f4e5aa90
1 changed files with 23 additions and 16 deletions
15
flake.nix
15
flake.nix
|
|
@ -31,8 +31,8 @@
|
|||
outputs = { self, nixpkgs, home-manager, ... } @ inputs:
|
||||
let
|
||||
rootPath = ./.;
|
||||
system = "x86_64-linux";
|
||||
pkgs = import nixpkgs { inherit system; };
|
||||
systems = [ "x86_64-linux" "aarch64-linux" ];
|
||||
forAllSystems = f: nixpkgs.lib.genAttrs systems (system: f system);
|
||||
in
|
||||
{
|
||||
nixosConfigurations = {
|
||||
|
|
@ -64,13 +64,18 @@
|
|||
modules = [ ./home/hosts/wsl.nix ];
|
||||
};
|
||||
"android@y2q" = home-manager.lib.homeManagerConfiguration {
|
||||
pkgs = nixpkgs.legacyPackages.x86_64-linux;
|
||||
pkgs = nixpkgs.legacyPackages.aarch64-linux;
|
||||
extraSpecialArgs = { inherit inputs rootPath; };
|
||||
modules = [ ./home/hosts/y2q.nix ];
|
||||
};
|
||||
};
|
||||
|
||||
devShells.${system}.default = pkgs.mkShell {
|
||||
devShells = forAllSystems (system:
|
||||
let
|
||||
pkgs = import nixpkgs { inherit system; };
|
||||
in
|
||||
{
|
||||
default = pkgs.mkShell {
|
||||
buildInputs = [
|
||||
pkgs.nix
|
||||
pkgs.home-manager
|
||||
|
|
@ -84,5 +89,7 @@
|
|||
alias deploy-home="home-manager switch --flake .#$USER@$HOST"
|
||||
'';
|
||||
};
|
||||
}
|
||||
);
|
||||
};
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue