disko
This commit is contained in:
parent
bca977032a
commit
96a8f7e941
30
flake.lock
30
flake.lock
@ -1,17 +1,38 @@
|
|||||||
{
|
{
|
||||||
"nodes": {
|
"nodes": {
|
||||||
|
"disko": {
|
||||||
|
"inputs": {
|
||||||
|
"nixpkgs": [
|
||||||
|
"nixpkgs"
|
||||||
|
]
|
||||||
|
},
|
||||||
|
"locked": {
|
||||||
|
"lastModified": 1730135292,
|
||||||
|
"narHash": "sha256-CI27qHAbc3/tIe8sb37kiHNaeCqGxNimckCMj0lW5kg=",
|
||||||
|
"owner": "nix-community",
|
||||||
|
"repo": "disko",
|
||||||
|
"rev": "ab58501b2341bc5e0fc88f2f5983a679b075ddf5",
|
||||||
|
"type": "github"
|
||||||
|
},
|
||||||
|
"original": {
|
||||||
|
"owner": "nix-community",
|
||||||
|
"ref": "latest",
|
||||||
|
"repo": "disko",
|
||||||
|
"type": "github"
|
||||||
|
}
|
||||||
|
},
|
||||||
"nixpkgs": {
|
"nixpkgs": {
|
||||||
"locked": {
|
"locked": {
|
||||||
"lastModified": 1731951205,
|
"lastModified": 1731954261,
|
||||||
"narHash": "sha256-9YhDFPy6K7vUA9NVvlIrV0dFxrARqKgTFhst94yblkM=",
|
"narHash": "sha256-xk83zrDElaMXiHI8DH6sLLTix5+ijPYmIusiQ16GDdc=",
|
||||||
"owner": "nixos",
|
"owner": "nixos",
|
||||||
"repo": "nixpkgs",
|
"repo": "nixpkgs",
|
||||||
"rev": "0054a256665f0df8d61b4df921280d6994f2c284",
|
"rev": "ad2c28c6c5cc04e09bed68db46db5718d40b5b9e",
|
||||||
"type": "github"
|
"type": "github"
|
||||||
},
|
},
|
||||||
"original": {
|
"original": {
|
||||||
"owner": "nixos",
|
"owner": "nixos",
|
||||||
"ref": "release-24.11",
|
"ref": "release-24.05",
|
||||||
"repo": "nixpkgs",
|
"repo": "nixpkgs",
|
||||||
"type": "github"
|
"type": "github"
|
||||||
}
|
}
|
||||||
@ -34,6 +55,7 @@
|
|||||||
},
|
},
|
||||||
"root": {
|
"root": {
|
||||||
"inputs": {
|
"inputs": {
|
||||||
|
"disko": "disko",
|
||||||
"nixpkgs": "nixpkgs",
|
"nixpkgs": "nixpkgs",
|
||||||
"pkgsUnstable": "pkgsUnstable"
|
"pkgsUnstable": "pkgsUnstable"
|
||||||
}
|
}
|
||||||
|
@ -2,11 +2,13 @@
|
|||||||
description = "my nixos setup";
|
description = "my nixos setup";
|
||||||
|
|
||||||
inputs = {
|
inputs = {
|
||||||
nixpkgs.url = "github:nixos/nixpkgs/release-24.11";
|
nixpkgs.url = "github:nixos/nixpkgs/release-24.05";
|
||||||
pkgsUnstable.url = "github:nixos/nixpkgs/nixpkgs-unstable";
|
pkgsUnstable.url = "github:nixos/nixpkgs/nixpkgs-unstable";
|
||||||
|
disko.url = "github:nix-community/disko/latest";
|
||||||
|
disko.inputs.nixpkgs.follows = "nixpkgs";
|
||||||
};
|
};
|
||||||
|
|
||||||
outputs = { self, nixpkgs, pkgsUnstable, ... }:
|
outputs = { self, nixpkgs, disko, pkgsUnstable, ... }:
|
||||||
let
|
let
|
||||||
system = "x86_64-linux";
|
system = "x86_64-linux";
|
||||||
lib = nixpkgs.lib;
|
lib = nixpkgs.lib;
|
||||||
|
4
setup.sh
4
setup.sh
@ -1,3 +1,5 @@
|
|||||||
sudo nixos-rebuild boot --flake .#
|
sudo nix --experimental-features "nix-command flakes" run github:nix-community/disko/latest -- --mode destroy,format,mount system/vincents-old-hp/disk.nix
|
||||||
|
|
||||||
|
sudo nixos-install --flake .#vincent-old-hp
|
||||||
|
|
||||||
echo "REBOOT YOUR COMPUTER"
|
echo "REBOOT YOUR COMPUTER"
|
||||||
|
@ -1,9 +1,9 @@
|
|||||||
{
|
{
|
||||||
disko.devices = {
|
disko.devices = {
|
||||||
disk = {
|
disk = {
|
||||||
nvme0n1 = {
|
sda = {
|
||||||
type = "disk";
|
type = "disk";
|
||||||
device = "/dev/nvme0n1";
|
device = "/dev/sda";
|
||||||
content = {
|
content = {
|
||||||
type = "gpt";
|
type = "gpt";
|
||||||
partitions = {
|
partitions = {
|
||||||
|
Loading…
Reference in New Issue
Block a user