feat: WSL config to hosts/wsl.nix & extract shared modules 🚚
This commit is contained in:
parent
68502efec2
commit
0368fcce91
2 changed files with 11 additions and 9 deletions
|
|
@ -19,22 +19,31 @@
|
||||||
nixosConfigurations = {
|
nixosConfigurations = {
|
||||||
|
|
||||||
wsl = nixpkgs.lib.nixosSystem {
|
wsl = nixpkgs.lib.nixosSystem {
|
||||||
|
system = "x86_64-linux";
|
||||||
modules = [
|
modules = [
|
||||||
nixos-wsl.nixosModules.default
|
nixos-wsl.nixosModules.default
|
||||||
vscode-server.nixosModules.default
|
vscode-server.nixosModules.default
|
||||||
./configuration.nix
|
./hosts/wsl.nix # previously configuration.nix
|
||||||
|
./tmux.nix
|
||||||
|
./neovim.nix
|
||||||
|
./fish.nix
|
||||||
# home-manager.nixosModules.default
|
# home-manager.nixosModules.default
|
||||||
];
|
];
|
||||||
};
|
};
|
||||||
|
|
||||||
macbookair = nixpkgs.lib.nixosSystem {
|
macbookair = nixpkgs.lib.nixosSystem {
|
||||||
|
system = "x86_64-linux";
|
||||||
modules = [
|
modules = [
|
||||||
nixos-wsl.nixosModules.default
|
nixos-wsl.nixosModules.default
|
||||||
vscode-server.nixosModules.default
|
vscode-server.nixosModules.default
|
||||||
./configuration.nix
|
# ./hosts/macbookair.nix # previously configuration.nix
|
||||||
|
./tmux.nix
|
||||||
|
./neovim.nix
|
||||||
|
./fish.nix
|
||||||
# home-manager.nixosModules.default
|
# home-manager.nixosModules.default
|
||||||
];
|
];
|
||||||
};
|
};
|
||||||
|
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
|
|
||||||
|
|
@ -8,12 +8,6 @@
|
||||||
{ config, lib, pkgs, ... }:
|
{ config, lib, pkgs, ... }:
|
||||||
|
|
||||||
{
|
{
|
||||||
imports = [
|
|
||||||
./tmux.nix
|
|
||||||
./neovim.nix
|
|
||||||
./fish.nix
|
|
||||||
];
|
|
||||||
|
|
||||||
wsl = {
|
wsl = {
|
||||||
enable = true;
|
enable = true;
|
||||||
defaultUser = "nixos";
|
defaultUser = "nixos";
|
||||||
|
|
@ -54,7 +48,6 @@
|
||||||
initialPassword = "test";
|
initialPassword = "test";
|
||||||
};
|
};
|
||||||
|
|
||||||
nixpkgs.hostPlatform = "x86_64-linux";
|
|
||||||
nixpkgs.config.allowUnfree = true;
|
nixpkgs.config.allowUnfree = true;
|
||||||
environment.variables = {
|
environment.variables = {
|
||||||
DBT_USER = "DNTH";
|
DBT_USER = "DNTH";
|
||||||
Loading…
Add table
Add a link
Reference in a new issue