Added wsl nixos
This commit is contained in:
13
flake.nix
13
flake.nix
@@ -4,6 +4,7 @@
|
||||
inputs = {
|
||||
nixpkgs.url = "github:nixos/nixpkgs?ref=nixos-unstable";
|
||||
nixos-hardware.url = "github:NixOS/nixos-hardware/master";
|
||||
nixos-wsl.url = "github:nix-community/NixOS-WSL/main";
|
||||
|
||||
vscode-server = {
|
||||
url = "github:nix-community/nixos-vscode-server";
|
||||
@@ -19,9 +20,10 @@
|
||||
url = "gitlab:rycee/nur-expressions?dir=pkgs/firefox-addons";
|
||||
inputs.nixpkgs.follows = "nixpkgs";
|
||||
};
|
||||
|
||||
};
|
||||
|
||||
outputs = { self, nixpkgs, nixos-hardware, ... }@inputs:
|
||||
outputs = { self, nixpkgs, nixos-hardware, nixos-wsl, ... }@inputs:
|
||||
let
|
||||
system = "x86_64-linux";
|
||||
pkgs = import nixpkgs {
|
||||
@@ -63,6 +65,15 @@
|
||||
];
|
||||
};
|
||||
|
||||
nixosConfigurations.caesium-wsl = nixpkgs.lib.nixosSystem {
|
||||
specialArgs = { inherit system; inherit inputs; };
|
||||
|
||||
modules = [
|
||||
nixos-wsl.nixosModules.default
|
||||
./_hosts/caesium-wsl/configuration.nix
|
||||
];
|
||||
};
|
||||
|
||||
homeManagerModules.default = "./nixos-modules/home-manager";
|
||||
};
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user