hosts: enable disko

This commit is contained in:
notohh 2024-04-22 18:02:29 -04:00
parent a597b5d2fd
commit 26d677cea7
Signed by: notohh
GPG key ID: BD47506D475EE86D
5 changed files with 93 additions and 0 deletions

View file

@ -148,6 +148,26 @@
"type": "github"
}
},
"disko": {
"inputs": {
"nixpkgs": [
"nixpkgs"
]
},
"locked": {
"lastModified": 1713749408,
"narHash": "sha256-9hFaSpgx+rZgGVLsjWdT+QUGyZplUyGdK45IoWEx1GM=",
"owner": "nix-community",
"repo": "disko",
"rev": "b8785a1c37f6176b6bc3d2939df329ab3a8f226c",
"type": "github"
},
"original": {
"owner": "nix-community",
"repo": "disko",
"type": "github"
}
},
"flake-compat": {
"flake": false,
"locked": {
@ -1339,6 +1359,7 @@
"attic": "attic",
"atuin": "atuin",
"deploy-rs": "deploy-rs",
"disko": "disko",
"flake-parts": "flake-parts_2",
"helix": "helix",
"home-manager": "home-manager",

View file

@ -81,6 +81,10 @@
url = "github:serokell/deploy-rs";
inputs.nixpkgs.follows = "nixpkgs";
};
disko = {
url = "github:nix-community/disko";
inputs.nixpkgs.follows = "nixpkgs";
};
sops-nix = {
url = "github:Mic92/sops-nix";
inputs.nixpkgs.follows = "nixpkgs";

View file

@ -0,0 +1,33 @@
{
disko.devices = {
disk = {
vdb = {
device = "/dev/vda";
type = "disk";
content = {
type = "gpt";
partitions = {
ESP = {
end = "500M";
type = "EF00";
content = {
type = "filesystem";
format = "vfat";
mountpoint = "/boot";
};
};
root = {
name = "root";
end = "-0";
content = {
type = "filesystem";
format = "bcachefs";
mountpoint = "/";
};
};
};
};
};
};
};
}

View file

@ -11,6 +11,7 @@
atticModule = inputs.attic.nixosModules.atticd;
nurModule = inputs.nur.nixosModules.nur;
t480Module = inputs.nixos-hardware.nixosModules.lenovo-thinkpad-t480;
diskoModule = inputs.disko.nixosModules.default;
in {
tsuki = nixosSystem {
inherit specialArgs;
@ -20,6 +21,7 @@
hmModule
atticModule
nurModule
diskoModule
{
home-manager = {
useGlobalPkgs = true;

View file

@ -0,0 +1,33 @@
{
disko.devices = {
disk = {
vdb = {
device = "/dev/nvme0n1";
type = "disk";
content = {
type = "gpt";
partitions = {
ESP = {
end = "500M";
type = "EF00";
content = {
type = "filesystem";
format = "vfat";
mountpoint = "/boot";
};
};
root = {
name = "root";
end = "-0";
content = {
type = "filesystem";
format = "bcachefs";
mountpoint = "/";
};
};
};
};
};
};
};
}