mirror of
https://gitlab.com/ahoneybun/nix-configs.git
synced 2025-05-13 03:33:00 -06:00
Fix VM flake to work with disko
This commit is contained in:
parent
af298e85b5
commit
edc1949f24
1 changed files with 10 additions and 1 deletions
|
@ -3,9 +3,13 @@
|
||||||
|
|
||||||
inputs = {
|
inputs = {
|
||||||
nixpkgs.url = "github:NixOS/nixpkgs/release-23.11";
|
nixpkgs.url = "github:NixOS/nixpkgs/release-23.11";
|
||||||
|
disko = {
|
||||||
|
url = github:nix-community/disko;
|
||||||
|
inputs.nixpkgs.follows = "nixpkgs";
|
||||||
|
}
|
||||||
};
|
};
|
||||||
|
|
||||||
outputs = { self, nixpkgs, ... }@inputs: {
|
outputs = { self, nixpkgs, disko, ... }@inputs: {
|
||||||
nixosConfigurations = {
|
nixosConfigurations = {
|
||||||
"vm" = nixpkgs.lib.nixosSystem {
|
"vm" = nixpkgs.lib.nixosSystem {
|
||||||
system = "x86_64-linux";
|
system = "x86_64-linux";
|
||||||
|
@ -13,6 +17,11 @@
|
||||||
# Import the configuration.nix we used before, so that the old configuration file can still take effect.
|
# Import the configuration.nix we used before, so that the old configuration file can still take effect.
|
||||||
# Note: /etc/nixos/configuration.nix itself is also a Nix Module, so you can import it directly here
|
# Note: /etc/nixos/configuration.nix itself is also a Nix Module, so you can import it directly here
|
||||||
# ./configuration.nix
|
# ./configuration.nix
|
||||||
|
disko.nixosModules.disko
|
||||||
|
./disko-config.nix
|
||||||
|
{
|
||||||
|
_module.args.disks = [ "/dev/vda" ];
|
||||||
|
}
|
||||||
./hardware-configuration.nix
|
./hardware-configuration.nix
|
||||||
|
|
||||||
({config, pkgs, ...}: {
|
({config, pkgs, ...}: {
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue