mirror of
https://github.com/ryan4yin/nix-config.git
synced 2026-07-09 14:15:12 +02:00
fix: nixos installer
This commit is contained in:
@@ -5,17 +5,24 @@
|
|||||||
nixpkgs.url = "github:nixos/nixpkgs/nixos-24.05";
|
nixpkgs.url = "github:nixos/nixpkgs/nixos-24.05";
|
||||||
impermanence.url = "github:nix-community/impermanence";
|
impermanence.url = "github:nix-community/impermanence";
|
||||||
nixos-hardware.url = "github:NixOS/nixos-hardware/master";
|
nixos-hardware.url = "github:NixOS/nixos-hardware/master";
|
||||||
|
nuenv.url = "github:DeterminateSystems/nuenv";
|
||||||
};
|
};
|
||||||
|
|
||||||
outputs = inputs @ {
|
outputs = inputs @ {
|
||||||
nixpkgs,
|
nixpkgs,
|
||||||
nixos-hardware,
|
nixos-hardware,
|
||||||
|
nuenv,
|
||||||
...
|
...
|
||||||
}: {
|
}: {
|
||||||
nixosConfigurations = {
|
nixosConfigurations = {
|
||||||
ai = nixpkgs.lib.nixosSystem {
|
ai = nixpkgs.lib.nixosSystem {
|
||||||
system = "x86_64-linux";
|
system = "x86_64-linux";
|
||||||
specialArgs = inputs // {myvars.username = "ryan";};
|
specialArgs =
|
||||||
|
inputs
|
||||||
|
// {
|
||||||
|
myvars.username = "ryan";
|
||||||
|
myvars.userfullname = "Ryan Yin";
|
||||||
|
};
|
||||||
modules = [
|
modules = [
|
||||||
{networking.hostName = "ai";}
|
{networking.hostName = "ai";}
|
||||||
|
|
||||||
@@ -33,7 +40,12 @@
|
|||||||
|
|
||||||
shoukei = nixpkgs.lib.nixosSystem {
|
shoukei = nixpkgs.lib.nixosSystem {
|
||||||
system = "x86_64-linux";
|
system = "x86_64-linux";
|
||||||
specialArgs = inputs // {myvars.username = "ryan";};
|
specialArgs =
|
||||||
|
inputs
|
||||||
|
// {
|
||||||
|
myvars.username = "ryan";
|
||||||
|
myvars.userfullname = "Ryan Yin";
|
||||||
|
};
|
||||||
modules = [
|
modules = [
|
||||||
# Building on a USB installer is buggy, lack of disk space, memory, trublesome to setup substituteers, etc.
|
# Building on a USB installer is buggy, lack of disk space, memory, trublesome to setup substituteers, etc.
|
||||||
# so we disable apple-t2 module here to avoid build kernel during the initial installation, and enable it after the first boot.
|
# so we disable apple-t2 module here to avoid build kernel during the initial installation, and enable it after the first boot.
|
||||||
|
|||||||
Reference in New Issue
Block a user