2025-01-09 13:49:22 +00:00
|
|
|
{
|
2025-01-13 19:53:42 +00:00
|
|
|
withSystem,
|
|
|
|
inputs,
|
|
|
|
...
|
|
|
|
}: {
|
2025-01-09 13:49:22 +00:00
|
|
|
# perSystem = { ... }: { config.packages.hello = ...; };
|
|
|
|
|
|
|
|
flake.nixosConfigurations.crash = withSystem "x86_64-linux" (
|
2025-01-13 19:53:42 +00:00
|
|
|
ctx @ {
|
|
|
|
config,
|
|
|
|
inputs',
|
|
|
|
...
|
|
|
|
}:
|
|
|
|
inputs.nixpkgs.lib.nixosSystem {
|
|
|
|
# Expose `packages`, `inputs` and `inputs'` as module arguments.
|
|
|
|
# Use specialArgs permits use in `imports`.
|
|
|
|
# Note: if you publish modules for reuse, do not rely on specialArgs, but
|
|
|
|
# on the flake scope instead. See also https://flake.parts/define-module-in-separate-file.html
|
|
|
|
specialArgs = {
|
|
|
|
packages = config.packages;
|
|
|
|
inherit inputs inputs';
|
|
|
|
};
|
|
|
|
modules = [
|
|
|
|
(
|
|
|
|
{
|
|
|
|
config,
|
|
|
|
lib,
|
|
|
|
pkgs,
|
|
|
|
...
|
|
|
|
}: {
|
|
|
|
imports = [
|
|
|
|
# Hardware support
|
|
|
|
inputs.nixos-hardware.nixosModules.microsoft-surface-common
|
2025-01-14 00:32:49 +00:00
|
|
|
inputs.nixos-hardware.nixosModules.common-pc
|
|
|
|
inputs.nixos-hardware.nixosModules.common-pc-laptop
|
|
|
|
inputs.nixos-hardware.nixosModules.common-pc-laptop-ssd
|
|
|
|
inputs.nixos-hardware.nixosModules.common-cpu-intel
|
|
|
|
inputs.nixos-hardware.nixosModules.common-gpu-nvidia
|
2025-01-13 19:53:42 +00:00
|
|
|
# Our modules
|
|
|
|
(import ../../modules/base.nix {inherit inputs;})
|
|
|
|
(import ./configuration.nix)
|
|
|
|
(import ./hardware.nix)
|
|
|
|
(import ../../modules/user.nix {
|
|
|
|
inherit inputs;
|
|
|
|
mutableUsers = false;
|
|
|
|
})
|
|
|
|
];
|
2025-01-09 13:49:22 +00:00
|
|
|
|
2025-01-13 19:53:42 +00:00
|
|
|
nix.settings.experimental-features = [
|
|
|
|
"nix-command"
|
|
|
|
"flakes"
|
|
|
|
];
|
|
|
|
}
|
|
|
|
)
|
|
|
|
];
|
|
|
|
}
|
2025-01-09 13:49:22 +00:00
|
|
|
);
|
|
|
|
}
|