renamen file structure

This commit is contained in:
batvin321 2024-11-19 01:04:56 +00:00
parent 8e8b009ee8
commit 375470c7aa
15 changed files with 23 additions and 5 deletions

View File

@ -21,6 +21,22 @@
"type": "github" "type": "github"
} }
}, },
"nixos-hardware": {
"locked": {
"lastModified": 1731797098,
"narHash": "sha256-UhWmEZhwJZmVZ1jfHZFzCg+ZLO9Tb/v3Y6LC0UNyeTo=",
"owner": "NixOS",
"repo": "nixos-hardware",
"rev": "672ac2ac86f7dff2f6f3406405bddecf960e0db6",
"type": "github"
},
"original": {
"owner": "NixOS",
"ref": "master",
"repo": "nixos-hardware",
"type": "github"
}
},
"nixpkgs": { "nixpkgs": {
"locked": { "locked": {
"lastModified": 1731954261, "lastModified": 1731954261,
@ -56,6 +72,7 @@
"root": { "root": {
"inputs": { "inputs": {
"disko": "disko", "disko": "disko",
"nixos-hardware": "nixos-hardware",
"nixpkgs": "nixpkgs", "nixpkgs": "nixpkgs",
"pkgsUnstable": "pkgsUnstable" "pkgsUnstable": "pkgsUnstable"
} }

View File

@ -21,14 +21,14 @@
inherit system; inherit system;
specialArgs = { inherit unstable; }; specialArgs = { inherit unstable; };
modules = [ modules = [
./system/vincents-hp/configuration.nix ./system/my-hp/configuration.nix
]; ];
}; };
old-hp = lib.nixosSystem { old-hp = lib.nixosSystem {
inherit system; inherit system;
specialArgs = { inherit unstable; }; specialArgs = { inherit unstable; };
modules = [ modules = [
./system/vincents-old-hp/configuration.nix ./system/old-hp/configuration.nix
]; ];
}; };
macmini = lib.nixosSystem { macmini = lib.nixosSystem {
@ -37,14 +37,14 @@
modules = [ modules = [
# add your model from this list: https://github.com/NixOS/nixos-hardware/blob/master/flake.nix # add your model from this list: https://github.com/NixOS/nixos-hardware/blob/master/flake.nix
nixos-hardware.nixosModules.apple-macmini-4-1 nixos-hardware.nixosModules.apple-macmini-4-1
./system/2012macmini/configuration.nix ./system/macmini/configuration.nix
]; ];
}; };
moms-hp = lib.nixosSystem { moms-hp = lib.nixosSystem {
inherit system; inherit system;
specialArgs = { inherit unstable; }; specialArgs = { inherit unstable; };
modules = [ modules = [
./system/susans-hp/configuration.nix ./system/moms-hp/configuration.nix
]; ];
}; };
}; };

View File

@ -2,7 +2,8 @@ echo "enter config name"
read HOST read HOST
sudo nix --experimental-features "nix-command flakes" run github:nix-community/disko/latest -- --mode destroy system/$HOST/disk.nix sudo nix --experimental-features "nix-command flakes" run github:nix-community/disko/latest -- --mode destroy system/$HOST/disk.nix
sudo nix --experimental-features "nix-command flakes" run github:nix-community/disko/latest -- --mode format system/$HOST/disk.nix sudo nix --experimental-features "nix-command flakes" run github:nix-community/disko/latest -- --mode disko system/$HOST/disk.nix
#sudo nix --experimental-features "nix-command flakes" run github:nix-community/disko/latest -- --mode format system/$HOST/disk.nix
sudo nix --experimental-features "nix-command flakes" run github:nix-community/disko/latest -- --mode mount system/$HOST/disk.nix sudo nix --experimental-features "nix-command flakes" run github:nix-community/disko/latest -- --mode mount system/$HOST/disk.nix
sudo nixos-install --flake .#$HOST sudo nixos-install --flake .#$HOST