mirror of
https://gitlab.com/ahoneybun/nix-configs.git
synced 2025-05-12 11:14:02 -06:00
Update flake.nix
This commit is contained in:
parent
74f2df5968
commit
9952ba2a34
1 changed files with 17 additions and 8 deletions
25
flake.nix
25
flake.nix
|
@ -3,17 +3,26 @@
|
|||
|
||||
inputs = {
|
||||
nixpkgs.url = "github:NixOS/nixpkgs/release-23.11";
|
||||
disko = {
|
||||
url = github:nix-community/disko;
|
||||
inputs.nixpkgs.follows = "nixpkgs";
|
||||
};
|
||||
};
|
||||
|
||||
outputs = { self, nixpkgs, ... }@inputs: {
|
||||
nixosConfigurations = {
|
||||
outputs = { self, nixpkgs, disko, ... }@inputs: {
|
||||
nixosConfigurations = {
|
||||
"nixos" = nixpkgs.lib.nixosSystem {
|
||||
system = "x86_64-linux";
|
||||
modules = [
|
||||
# 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
|
||||
#./configuration.nix
|
||||
./hardware-configuration.nix
|
||||
system = "x86_64-linux";
|
||||
modules = [
|
||||
# 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
|
||||
# ./configuration.nix
|
||||
disko.nixosModules.disko
|
||||
./disko-config.nix
|
||||
{
|
||||
_module.args.disks = [ "/dev/vda" ];
|
||||
}
|
||||
./hardware-configuration.nix
|
||||
|
||||
({config, pkgs, ...}: {
|
||||
nix = {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue