add wsl host

This commit is contained in:
Noah Masur 2022-07-07 07:49:48 -04:00
parent 1e511ce08b
commit 86b1ab61cb
4 changed files with 22 additions and 2 deletions

View File

@ -60,6 +60,7 @@
desktop = import ./hosts/desktop { desktop = import ./hosts/desktop {
inherit nixpkgs home-manager nur globals wallpapers; inherit nixpkgs home-manager nur globals wallpapers;
}; };
wsl = import ./hosts/wsl { inherit nixpkgs home-manager globals; };
}; };
darwinConfigurations = { darwinConfigurations = {

20
hosts/wsl/default.nix Normal file
View File

@ -0,0 +1,20 @@
{ nixpkgs, home-manager, globals, ... }:
# System configuration for WSL
nixpkgs.lib.nixosSystem {
system = "x86_64-linux";
specialArgs = { };
modules = [
globals
home-manager.nixosModules.home-manager
{
networking.hostName = "wsl";
gui.enable = false;
passwordHash =
"$6$PZYiMGmJIIHAepTM$Wx5EqTQ5GApzXx58nvi8azh16pdxrN6Qrv1wunDlzveOgawitWzcIxuj76X9V868fsPi/NOIEO8yVXqwzS9UF.";
}
../common.nix
../../modules/programming/nix.nix
../../modules/programming/lua.nix
];
}

View File

@ -7,8 +7,6 @@
nixfmt # Nix file formatter nixfmt # Nix file formatter
]; ];
programs.fish.shellAbbrs = { n = "nix"; };
}; };
} }

View File

@ -3,6 +3,7 @@
programs.fish = { programs.fish = {
shellAbbrs = { shellAbbrs = {
n = "nix";
ns = "nix-shell -p"; ns = "nix-shell -p";
nsr = "nix-shell-run"; nsr = "nix-shell-run";
nps = "nix repl '<nixpkgs>'"; nps = "nix repl '<nixpkgs>'";