mirror of
https://github.com/genebean/dots.git
synced 2026-03-27 17:37:43 -04:00
Clean up microvm bits
This commit is contained in:
parent
48f74e7c6a
commit
891be5631c
5 changed files with 50 additions and 178 deletions
27
flake.nix
27
flake.nix
|
|
@ -48,13 +48,8 @@
|
|||
flake = false;
|
||||
};
|
||||
|
||||
microvm = {
|
||||
url = "github:astro/microvm.nix";
|
||||
inputs.nixpkgs.follows = "nixpkgs";
|
||||
};
|
||||
|
||||
}; # end inputs
|
||||
outputs = inputs@{ self, nixpkgs, nixpkgs-unstable, nix-darwin, home-manager, nix-homebrew, nix-flatpak, disko, sops-nix, flox-flake, microvm, genebean-omp-themes, ... }: let
|
||||
outputs = inputs@{ self, nixpkgs, nixpkgs-unstable, nix-darwin, home-manager, nix-homebrew, nix-flatpak, disko, sops-nix, flox-flake, genebean-omp-themes, ... }: let
|
||||
|
||||
# creates a macOS system config
|
||||
darwinHostConfig = system: hostname: username: nix-darwin.lib.darwinSystem {
|
||||
|
|
@ -112,7 +107,6 @@
|
|||
};
|
||||
modules = [
|
||||
disko.nixosModules.disko
|
||||
#microvm.nixosModules.host
|
||||
|
||||
home-manager.nixosModules.home-manager {
|
||||
home-manager = {
|
||||
|
|
@ -133,22 +127,6 @@
|
|||
];
|
||||
}; # end nixosSystem
|
||||
|
||||
nixosMicrovmConfig = system: hostname: username: nixpkgs.lib.nixosSystem {
|
||||
inherit system;
|
||||
modules = [
|
||||
microvm.nixosModules.microvm
|
||||
{
|
||||
networking.hostName = "${hostname}";
|
||||
users.users.${username} = {
|
||||
initialHashedPassword = "$6$FH6xo/OzM9mIAXqx$GTqSEDahPGyxLiDOEY77uxaApdd3xJKOkvddV6X4wplTCxsbuoyXwuOuQjMODS7dhfRs.HwL3VQgUjmok3QM60";
|
||||
isNormalUser = true;
|
||||
};
|
||||
}
|
||||
./modules/hosts/nixos/microvms/${hostname} # host specific stuff
|
||||
];
|
||||
|
||||
}; # end nixosMicrovmConfig
|
||||
|
||||
linuxHomeConfig = system: hostname: username: home-manager.lib.homeManagerConfiguration {
|
||||
extraSpecialArgs = { inherit genebean-omp-themes hostname username;
|
||||
pkgs = import nixpkgs {
|
||||
|
|
@ -189,9 +167,6 @@
|
|||
hetznix01 = nixosHostConfig "aarch64-linux" "hetznix01" "gene";
|
||||
nixnuc = nixosHostConfig "x86_64-linux" "nixnuc" "gene";
|
||||
rainbow-planet = nixosHostConfig "x86_64-linux" "rainbow-planet" "gene";
|
||||
|
||||
# VMs
|
||||
nginx-proxy = nixosMicrovmConfig "x86_64-linux" "nginx-proxy" "gene";
|
||||
};
|
||||
|
||||
homeConfigurations = {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue