Releases: anntnzrb/_nixrice
Releases · anntnzrb/_nixrice
NixOS WSL 24.11 - v1.0
{
inputs = {
nixpkgs.url = "github:NixOS/nixpkgs/nixos-24.11";
nixos-wsl.url = "github:nix-community/NixOS-WSL/main";
nixos-wsl.inputs.nixpkgs.follows = "nixpkgs";
};
outputs =
inputs@{ nixpkgs, ... }:
let
user = "annt";
hostName = "tampa";
system = "x86_64-linux";
in
{
nixosConfigurations."${hostName}" = nixpkgs.lib.nixosSystem {
inherit system;
modules = [
inputs.nixos-wsl.nixosModules.default
{
# enable flakes
nix.settings.experimental-features = [
"nix-command"
"flakes"
];
system.stateVersion = "22.05"; # match my other systems
networking = { inherit hostName; };
# Nixos-WSL settings
wsl.enable = true;
wsl.defaultUser = user;
# a few packages to ship
environment.systemPackages = with nixpkgs.legacyPackages."${system}"; [
git
neovim
];
}
];
};
};
}