mirror of
https://github.com/nmasur/dotfiles
synced 2024-11-22 18:05:37 +00:00
add wsl host
This commit is contained in:
parent
1e511ce08b
commit
86b1ab61cb
@ -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
20
hosts/wsl/default.nix
Normal 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
|
||||||
|
];
|
||||||
|
}
|
@ -7,8 +7,6 @@
|
|||||||
nixfmt # Nix file formatter
|
nixfmt # Nix file formatter
|
||||||
];
|
];
|
||||||
|
|
||||||
programs.fish.shellAbbrs = { n = "nix"; };
|
|
||||||
|
|
||||||
};
|
};
|
||||||
|
|
||||||
}
|
}
|
||||||
|
@ -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>'";
|
||||||
|
Loading…
Reference in New Issue
Block a user