mirror of
https://github.com/nickolaj-jepsen/nixos.git
synced 2026-01-22 16:16:50 +01:00
first attempt at a legion setup
This commit is contained in:
parent
b5febd4395
commit
c69ed34507
11 changed files with 527 additions and 44 deletions
26
machines/wsl/configuration.nix
Normal file
26
machines/wsl/configuration.nix
Normal file
|
|
@ -0,0 +1,26 @@
|
|||
{
|
||||
username,
|
||||
pkgs,
|
||||
...
|
||||
}: {
|
||||
programs.nix-ld = {
|
||||
enable = true;
|
||||
};
|
||||
|
||||
wsl = {
|
||||
enable = true;
|
||||
defaultUser = username;
|
||||
};
|
||||
|
||||
home-manager.users.${username}.imports = [
|
||||
./home-manager.nix
|
||||
];
|
||||
|
||||
# Hacks to enable vscode
|
||||
services.vscode-server.enable = true;
|
||||
wsl.extraBin = with pkgs; [
|
||||
{ src = "${coreutils}/bin/uname"; }
|
||||
{ src = "${coreutils}/bin/dirname"; }
|
||||
{ src = "${coreutils}/bin/readlink"; }
|
||||
];
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue