Skip to content

Commit

Permalink
feat(nix): use flake nixpkgs for nix-shell
Browse files Browse the repository at this point in the history
  • Loading branch information
LGUG2Z committed Dec 5, 2023
1 parent 01e2d20 commit 03c32a4
Showing 1 changed file with 13 additions and 0 deletions.
13 changes: 13 additions & 0 deletions wsl.nix
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@
username,
hostname,
pkgs,
inputs,
...
}: {
# FIXME: change to your tz! look it up with "timedatectl list-timezones"
Expand Down Expand Up @@ -104,6 +105,18 @@
auto-optimise-store = true;
};

registry = {
nixpkgs = {
flake = inputs.nixpkgs;
};
};

nixPath = [
"nixpkgs=${inputs.nixpkgs.outPath}"
"nixos-config=/etc/nixos/configuration.nix"
"/nix/var/nix/profiles/per-user/root/channels"
];

package = pkgs.nixFlakes;
extraOptions = ''experimental-features = nix-command flakes'';

Expand Down

0 comments on commit 03c32a4

Please sign in to comment.