Added: Qemu Host Config
This commit is contained in:
33
flake.nix
33
flake.nix
@@ -1,5 +1,5 @@
|
||||
{
|
||||
description = "NixOS configuration of Ryan Yin";
|
||||
description = "NixOS configuration of DerGrumpf";
|
||||
|
||||
##################################################################################################################
|
||||
#
|
||||
@@ -44,13 +44,19 @@
|
||||
home-manager,
|
||||
...
|
||||
}: {
|
||||
packages.x86_64-linux.default = self.nixosConfigurations.iso.config.system.build.isoImage;
|
||||
nixosConfigurations = {
|
||||
iso = nixpkgs.lib.nixosSystem {
|
||||
system = "x86_64-linux";
|
||||
modules = [
|
||||
({ pkgs, modulesPath, ... }: {
|
||||
imports = [ (modulesPath + "/installer/cd-dvd/installation-cd-minimal.nix") ];
|
||||
environment.systemPackages = [ pkgs.neovim pkgs.git ];
|
||||
environment.systemPackages = with pkgs; [
|
||||
neovim
|
||||
git
|
||||
wget
|
||||
curl
|
||||
];
|
||||
})
|
||||
];
|
||||
};
|
||||
@@ -77,6 +83,29 @@
|
||||
}
|
||||
];
|
||||
};
|
||||
|
||||
qemu = let
|
||||
username = "phil";
|
||||
specialArgs = {inherit username;};
|
||||
in
|
||||
nixpkgs.lib.nixosSystem {
|
||||
inherit specialArgs;
|
||||
system = "x86_64-linux";
|
||||
|
||||
modules = [
|
||||
./hosts/m920q
|
||||
./users/${username}/nixos.nix
|
||||
|
||||
home-manager.nixosModules.home-manager
|
||||
{
|
||||
home-manager.useGlobalPkgs = true;
|
||||
home-manager.useUserPackages = true;
|
||||
|
||||
home-manager.extraSpecialArgs = inputs // specialArgs;
|
||||
home-manager.users.${username} = import ./users/${username}/home.nix;
|
||||
}
|
||||
];
|
||||
};
|
||||
};
|
||||
};
|
||||
}
|
||||
|
Reference in New Issue
Block a user