Add wsl-bootstrap config
This does not contain the home manager setup, since including that in the bootstrap image appears to prevent home-manager from doing any updates
This commit is contained in:
parent
f0d33d6525
commit
086873fd91
30
flake.nix
30
flake.nix
|
@ -182,8 +182,34 @@
|
|||
wsl = makeNixosSystem {
|
||||
system = "x86_64-linux";
|
||||
hostName = "wsl";
|
||||
extraModules =
|
||||
[ wsl.nixosModules.wsl ./machines/wsl/configuration.nix ];
|
||||
extraModules = [
|
||||
wsl.nixosModules.wsl
|
||||
./machines/wsl/configuration.nix
|
||||
({ ... }: { # Setup home manager
|
||||
home-manager.users.nathan = import ./machines/wsl/home.nix;
|
||||
})
|
||||
];
|
||||
};
|
||||
|
||||
wsl-bootstrap = nixpkgs.lib.nixosSystem {
|
||||
system = "x86_64-linux";
|
||||
specialArgs = { inputs = inputs; };
|
||||
modules = [
|
||||
sops-nix.nixosModules.sops
|
||||
hyprland.nixosModules.default
|
||||
./modules/linux/default.nix
|
||||
({ pkgs, lib, config, ... }: {
|
||||
# Configure hostname
|
||||
networking = { hostName = "wsl"; };
|
||||
# Setup sops
|
||||
# Add default secrets
|
||||
sops = { age.sshKeyPaths = [ "/etc/ssh/ssh_host_ed25519_key" ]; };
|
||||
nixpkgs.config.allowUnfree = true;
|
||||
nixpkgs.config.allowUnfreePredicate = (pkg: true);
|
||||
})
|
||||
wsl.nixosModules.wsl
|
||||
./machines/wsl/configuration.nix
|
||||
];
|
||||
};
|
||||
|
||||
# VMs
|
||||
|
|
|
@ -16,8 +16,6 @@
|
|||
};
|
||||
# Configure networking
|
||||
networking = { domain = "mccarty.io"; };
|
||||
# Setup home manager
|
||||
home-manager.users.nathan = import ./home.nix;
|
||||
# Setup WSL
|
||||
wsl = {
|
||||
enable = true;
|
||||
|
|
Loading…
Reference in New Issue