mirror of
https://github.com/davegallant/nix-config
synced 2025-08-07 00:58:16 +00:00
Cleanup for macOS
This commit is contained in:
58
modules/machines/aether/nixos-wsl/flake.nix
Normal file
58
modules/machines/aether/nixos-wsl/flake.nix
Normal file
@@ -0,0 +1,58 @@
|
||||
{
|
||||
description = "NixOS WSL";
|
||||
|
||||
inputs = {
|
||||
nixpkgs.url = "nixpkgs/nixos-21.11";
|
||||
flake-utils.url = "github:numtide/flake-utils";
|
||||
|
||||
flake-compat = {
|
||||
url = "github:edolstra/flake-compat";
|
||||
flake = false;
|
||||
};
|
||||
};
|
||||
|
||||
outputs = {
|
||||
self,
|
||||
nixpkgs,
|
||||
flake-utils,
|
||||
...
|
||||
}:
|
||||
{
|
||||
nixosModules.wsl = {
|
||||
imports = [
|
||||
./modules/build-tarball.nix
|
||||
./modules/wsl-distro.nix
|
||||
./modules/docker-desktop.nix
|
||||
./modules/tailscale.nix
|
||||
./modules/installer.nix
|
||||
];
|
||||
};
|
||||
|
||||
nixosConfigurations.mysystem = nixpkgs.lib.nixosSystem {
|
||||
system = "x86_64-linux";
|
||||
modules = [
|
||||
./configuration.nix
|
||||
];
|
||||
};
|
||||
}
|
||||
// flake-utils.lib.eachSystem
|
||||
(with flake-utils.lib.system; ["x86_64-linux" "aarch64-linux"])
|
||||
(
|
||||
system: let
|
||||
pkgs = import nixpkgs {inherit system;};
|
||||
in {
|
||||
checks.check-format =
|
||||
pkgs.runCommand "check-format"
|
||||
{
|
||||
buildInputs = with pkgs; [nixpkgs-fmt];
|
||||
} ''
|
||||
nixpkgs-fmt --check ${./.}
|
||||
mkdir $out # success
|
||||
'';
|
||||
|
||||
devShell = pkgs.mkShell {
|
||||
nativeBuildInputs = with pkgs; [nixpkgs-fmt];
|
||||
};
|
||||
}
|
||||
);
|
||||
}
|
Reference in New Issue
Block a user