61 lines
1.4 KiB
Nix
61 lines
1.4 KiB
Nix
{
|
|
inputs = {
|
|
nixpkgs.url = "github:NixOS/nixpkgs/nixos-unstable";
|
|
|
|
nixos-wsl.url = "github:nix-community/NixOS-WSL/main";
|
|
|
|
home-manager = {
|
|
url = "github:nix-community/home-manager";
|
|
inputs.nixpkgs.follows = "nixpkgs";
|
|
};
|
|
};
|
|
|
|
outputs =
|
|
{ self, nixpkgs, ... }@inputs:
|
|
let
|
|
inherit (self) outputs;
|
|
system = "x86_64-linux";
|
|
in
|
|
{
|
|
formatter.${system} = nixpkgs.legacyPackages.${system}.nixfmt-tree;
|
|
|
|
nixosConfigurations = {
|
|
wsl = nixpkgs.lib.nixosSystem {
|
|
specialArgs = {
|
|
inherit inputs outputs;
|
|
};
|
|
|
|
inherit system;
|
|
|
|
modules = [
|
|
./hosts/wsl/configuration.nix
|
|
inputs.nixos-wsl.nixosModules.default
|
|
inputs.home-manager.nixosModules.default
|
|
{
|
|
home-manager = {
|
|
useGlobalPkgs = true;
|
|
useUserPackages = true;
|
|
users = {
|
|
nixos = import ./home/nixos/home.nix;
|
|
};
|
|
};
|
|
}
|
|
];
|
|
};
|
|
};
|
|
|
|
# homeConfiguration = {
|
|
# nixos = inputs.home-manager.lib.homeManagerConfiguration {
|
|
# extraSpecialArgs = {
|
|
# inherit inputs outputs self;
|
|
# };
|
|
|
|
# pkgs = nixpkgs.legacyPackages."x86_64-linux";
|
|
|
|
# modules = [
|
|
# ./home/nixos/home.nix
|
|
# ];
|
|
# };
|
|
# };
|
|
};
|
|
}
|