Skip to content

Commit

Permalink
feat: multi-arch
Browse files Browse the repository at this point in the history
  • Loading branch information
sioodmy committed Nov 7, 2024
1 parent c649111 commit 2321e82
Show file tree
Hide file tree
Showing 2 changed files with 71 additions and 23 deletions.
31 changes: 31 additions & 0 deletions flake.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

63 changes: 40 additions & 23 deletions flake.nix
Original file line number Diff line number Diff line change
@@ -1,31 +1,48 @@
{
description = "Consequence of allowing autistic people on the internet. Stay mad one-proper-config-structure purists :3";

outputs = {nixpkgs, ...} @ inputs: let
pkgs = nixpkgs.legacyPackages.x86_64-linux;
theme = import ./theme;
user = import ./user {
inherit pkgs theme;
};
in {
nixosConfigurations = import ./hosts inputs;
nixosModules =
{
# This module is not meant to be imported by anyone but me
# it's just so I can easily avoid ../../../../../ mess
system = import ./system;
outputs = inputs @ {flake-parts, ...}:
flake-parts.lib.mkFlake {inherit inputs;} {
flake = {
nixosModules =
{
# This module is not meant to be imported by anyone but me
# it's just so I can easily avoid ../../../../../ mess
system = import ./system;

user = user.module;
user = let
theme = import ./theme;
user = import ./user {inherit theme;};
in
user.module;

# place for my home brew modules
}
// import ./modules;
# place for my home brew modules
}
// import ./modules;
nixosConfigurations = import ./hosts inputs;
};
systems = [
"x86_64-linux"
"aarch64-linux"
];
perSystem = {pkgs, ...}: let
theme = import ./theme;
user = import ./user {
inherit pkgs theme;
};
in {
formatter = pkgs.alejandra;
packages = user.packages;
devShells.default = user.shell;
};
};

inherit theme;
packages.x86_64-linux = user.packages;
formatter.x86_64-linux = pkgs.alejandra;
devShells.x86_64-linux.default = user.shell;
inputs = {
nixpkgs.url = "github:nixos/nixpkgs/nixos-unstable";
flake-parts.url = "github:hercules-ci/flake-parts";
apple-silicon-support = {
url = "github:tpwrules/nixos-apple-silicon";
inputs.nixpkgs.follows = "nixpkgs";
};
};

inputs.nixpkgs.url = "github:nixos/nixpkgs/nixos-unstable";
}

0 comments on commit 2321e82

Please sign in to comment.