49 lines
1.2 KiB
Nix
49 lines
1.2 KiB
Nix
{
|
|
description = "NixOS-WSL configuration for pan";
|
|
|
|
inputs = {
|
|
# Use nixos-unstable for latest packages
|
|
nixpkgs.url = "github:nixos/nixpkgs/nixos-unstable";
|
|
|
|
# NixOS-WSL for WSL-specific functionality
|
|
nixos-wsl = {
|
|
url = "github:nix-community/NixOS-WSL";
|
|
inputs.nixpkgs.follows = "nixpkgs";
|
|
};
|
|
|
|
# Home Manager for user configuration
|
|
home-manager = {
|
|
url = "github:nix-community/home-manager";
|
|
inputs.nixpkgs.follows = "nixpkgs";
|
|
};
|
|
};
|
|
|
|
outputs = { self, nixpkgs, nixos-wsl, home-manager, ... }:
|
|
let
|
|
system = "x86_64-linux";
|
|
in
|
|
{
|
|
nixosConfigurations = {
|
|
# Use your hostname: "nix"
|
|
nix = nixpkgs.lib.nixosSystem {
|
|
inherit system;
|
|
modules = [
|
|
# NixOS-WSL module
|
|
nixos-wsl.nixosModules.wsl
|
|
|
|
# System configuration
|
|
./configuration.nix
|
|
|
|
# Home Manager as NixOS module
|
|
home-manager.nixosModules.home-manager
|
|
{
|
|
home-manager.useGlobalPkgs = true;
|
|
home-manager.useUserPackages = true;
|
|
home-manager.users.pan = import ./home.nix;
|
|
}
|
|
];
|
|
};
|
|
};
|
|
};
|
|
}
|