initial commit
This commit is contained in:
37
flake.nix
Normal file
37
flake.nix
Normal file
@@ -0,0 +1,37 @@
|
||||
{
|
||||
description = "Nixos config flake test";
|
||||
|
||||
inputs = {
|
||||
nixpkgs.url = "github:NixOS/nixpkgs/nixos-unstable";
|
||||
nixos-wsl.url = "github:nix-community/NixOS-WSL/main";
|
||||
};
|
||||
outputs = { self, nixpkgs, nixos-wsl, nix, ...}:
|
||||
#outputs = { self, nixpkgs, nixos-wsl, nix, ...}@inputs:
|
||||
#let
|
||||
#system = if builtins ? currentSystem
|
||||
# then builtins.currentSystem
|
||||
# #then "x86_64-linux"
|
||||
# else "x86_64-linux";
|
||||
#in
|
||||
{
|
||||
nixosConfigurations = {
|
||||
nixos = nixpkgs.lib.nixosSystem {
|
||||
system = "x86_64-linux";
|
||||
modules = [
|
||||
nixos-wsl.nixosModules.default
|
||||
./configuration.nix
|
||||
{
|
||||
#inherit system;
|
||||
#system = "x86_64-linux";
|
||||
system.stateVersion = "24.05";
|
||||
wsl.enable = true;
|
||||
nix.settings.experimental-features = ["nix-command" "flakes" ];
|
||||
#modules = [ ./configuration.nix ];
|
||||
#specialArgs = { inherit inputs; };
|
||||
}
|
||||
];
|
||||
#specialArgs = { inherit inputs; };
|
||||
};
|
||||
};
|
||||
};
|
||||
}
|
||||
Reference in New Issue
Block a user