Reformat
This commit is contained in:
parent
ac3825e6f9
commit
29fd118635
22 changed files with 424 additions and 424 deletions
|
@ -1,49 +1,53 @@
|
|||
{ withSystem, inputs, ... }:
|
||||
{
|
||||
withSystem,
|
||||
inputs,
|
||||
...
|
||||
}: {
|
||||
# perSystem = { ... }: { config.packages.hello = ...; };
|
||||
|
||||
flake.nixosConfigurations.crash = withSystem "x86_64-linux" (
|
||||
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,
|
||||
...
|
||||
}:
|
||||
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
|
||||
# Our modules
|
||||
(import ../../modules/base.nix {inherit inputs;})
|
||||
(import ./configuration.nix)
|
||||
(import ./hardware.nix)
|
||||
(import ../../modules/user.nix {
|
||||
inherit inputs;
|
||||
mutableUsers = false;
|
||||
})
|
||||
];
|
||||
|
||||
{
|
||||
imports = [
|
||||
# Hardware support
|
||||
inputs.nixos-hardware.nixosModules.microsoft-surface-common
|
||||
# Our modules
|
||||
(import ../../modules/base.nix { inherit inputs; })
|
||||
(import ./configuration.nix)
|
||||
(import ./hardware.nix)
|
||||
(import ../../modules/user.nix {
|
||||
inherit inputs;
|
||||
mutableUsers = false;
|
||||
})
|
||||
];
|
||||
|
||||
nix.settings.experimental-features = [
|
||||
"nix-command"
|
||||
"flakes"
|
||||
];
|
||||
|
||||
}
|
||||
)
|
||||
];
|
||||
}
|
||||
nix.settings.experimental-features = [
|
||||
"nix-command"
|
||||
"flakes"
|
||||
];
|
||||
}
|
||||
)
|
||||
];
|
||||
}
|
||||
);
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue