configuration.nix now has access to inputs from flaek
This commit is contained in:
parent
a1b0d96f14
commit
c256a2aa8a
@ -5,7 +5,7 @@
|
|||||||
# NixOS-WSL specific options are documented on the NixOS-WSL repository:
|
# NixOS-WSL specific options are documented on the NixOS-WSL repository:
|
||||||
# https://github.com/nix-community/NixOS-WSL
|
# https://github.com/nix-community/NixOS-WSL
|
||||||
|
|
||||||
{ config, lib, pkgs, ... }:
|
{ config, lib, pkgs, inputs, ... }:
|
||||||
|
|
||||||
{
|
{
|
||||||
imports = [
|
imports = [
|
||||||
|
|||||||
22
flake.nix
22
flake.nix
@ -5,32 +5,26 @@
|
|||||||
nixpkgs.url = "github:NixOS/nixpkgs/nixos-unstable";
|
nixpkgs.url = "github:NixOS/nixpkgs/nixos-unstable";
|
||||||
nixos-wsl.url = "github:nix-community/NixOS-WSL/main";
|
nixos-wsl.url = "github:nix-community/NixOS-WSL/main";
|
||||||
};
|
};
|
||||||
outputs = { self, nixpkgs, nixos-wsl, nix, ...}:
|
outputs = { self, nixpkgs, nixos-wsl, nix, ...}@inputs:
|
||||||
#outputs = { self, nixpkgs, nixos-wsl, nix, ...}@inputs:
|
let
|
||||||
#let
|
system = if builtins ? currentSystem
|
||||||
#system = if builtins ? currentSystem
|
then builtins.currentSystem
|
||||||
# then builtins.currentSystem
|
else "x86_64-linux";
|
||||||
# #then "x86_64-linux"
|
in
|
||||||
# else "x86_64-linux";
|
|
||||||
#in
|
|
||||||
{
|
{
|
||||||
nixosConfigurations = {
|
nixosConfigurations = {
|
||||||
nixos = nixpkgs.lib.nixosSystem {
|
nixos = nixpkgs.lib.nixosSystem {
|
||||||
system = "x86_64-linux";
|
inherit system;
|
||||||
modules = [
|
modules = [
|
||||||
nixos-wsl.nixosModules.default
|
nixos-wsl.nixosModules.default
|
||||||
./configuration.nix
|
./configuration.nix
|
||||||
{
|
{
|
||||||
#inherit system;
|
|
||||||
#system = "x86_64-linux";
|
|
||||||
system.stateVersion = "24.05";
|
system.stateVersion = "24.05";
|
||||||
wsl.enable = true;
|
wsl.enable = true;
|
||||||
nix.settings.experimental-features = ["nix-command" "flakes" ];
|
nix.settings.experimental-features = ["nix-command" "flakes" ];
|
||||||
#modules = [ ./configuration.nix ];
|
|
||||||
#specialArgs = { inherit inputs; };
|
|
||||||
}
|
}
|
||||||
];
|
];
|
||||||
#specialArgs = { inherit inputs; };
|
specialArgs = { inherit inputs; };
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user