Init crash

This commit is contained in:
Nathan McCarty 2025-01-09 08:49:22 -05:00
parent bac7bcb3a4
commit 1e35472464
5 changed files with 323 additions and 23 deletions

View file

@ -21,40 +21,52 @@
};
outputs =
inputs@{ flake-parts, ... }:
inputs@{ flake-parts, self, ... }:
flake-parts.lib.mkFlake { inherit inputs; } {
imports = [
inputs.devshell.flakeModule
./nixos/machines/wsl/configuration.nix
./nixos/machines/installer/configuration.nix
./nixos/machines/crash/machine.nix
./home-manager/machines/wsl/home.nix
./home-manager/machines/crash/home.nix
./devshells/rust.nix
./devshells/idris2.nix
./devshells/raku.nix
];
systems = [
"x86_64-linux"
"aarch64-linux"
"aarch64-darwin"
"x86_64-darwin"
];
perSystem =
{
config,
self',
inputs',
pkgs,
system,
...
}:
{
# Per-system attributes can be defined here. The self' and inputs'
# module parameters provide easy access to attributes of the same
# system.
config = {
systems = [
"x86_64-linux"
"aarch64-linux"
"aarch64-darwin"
"x86_64-darwin"
];
perSystem =
{
config,
self',
inputs',
pkgs,
system,
...
}:
{
# Per-system attributes can be defined here. The self' and inputs'
# module parameters provide easy access to attributes of the same
# system.
# Equivalent to inputs'.nixpkgs.legacyPackages.hello;
packages.default = pkgs.hello;
};
};
options = with inputs.nixpkgs.lib; {
flake = flake-parts.lib.mkSubmoduleOptions {
homeConfigurations = mkOption {
type = types.lazyAttrsOf types.raw;
default = { };
};
# Equivalent to inputs'.nixpkgs.legacyPackages.hello;
packages.default = pkgs.hello;
};
flake = { };
};
};
}