feat: add multiarch devshell
This commit is contained in:
parent
995ef6a85d
commit
ce7338040e
1 changed files with 13 additions and 7 deletions
20
flake.nix
20
flake.nix
|
@ -11,12 +11,18 @@
|
||||||
outputs = { self, nixpkgs, home-manager, nur, ... }@inputs:
|
outputs = { self, nixpkgs, home-manager, nur, ... }@inputs:
|
||||||
let
|
let
|
||||||
stateVersion = "23.11";
|
stateVersion = "23.11";
|
||||||
|
|
||||||
|
allSystems = [
|
||||||
|
"x86_64-linux" # 64bit AMD/Intel x86
|
||||||
|
"aarch64-linux" # 64bit ARM macOS
|
||||||
|
];
|
||||||
|
|
||||||
|
forAllSystems = fn:
|
||||||
|
nixpkgs.lib.genAttrs allSystems
|
||||||
|
(system: fn { pkgs = import nixpkgs { inherit system; }; });
|
||||||
in {
|
in {
|
||||||
# TODO: make a multiarch flake
|
devShells = forAllSystems ({ pkgs }: {
|
||||||
devShells.x86_64-linux.default =
|
default = pkgs.mkShell {
|
||||||
let
|
|
||||||
pkgs = nixpkgs.legacyPackages."x86_64-linux";
|
|
||||||
in pkgs.mkShell {
|
|
||||||
name = "nixfiles";
|
name = "nixfiles";
|
||||||
buildInputs = [
|
buildInputs = [
|
||||||
pkgs.shellcheck
|
pkgs.shellcheck
|
||||||
|
@ -25,8 +31,8 @@ in {
|
||||||
pkgs.convco
|
pkgs.convco
|
||||||
pkgs.typos
|
pkgs.typos
|
||||||
];
|
];
|
||||||
};
|
};
|
||||||
|
});
|
||||||
nixosConfigurations = {
|
nixosConfigurations = {
|
||||||
morty = nixpkgs.lib.nixosSystem {
|
morty = nixpkgs.lib.nixosSystem {
|
||||||
system = "x86_64-linux";
|
system = "x86_64-linux";
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue