1
Fork 0

Import disko as module

This commit is contained in:
Matei Adriel 2023-07-17 18:54:31 +02:00
parent cc57b5ddbf
commit 9075130cc8
No known key found for this signature in database
4 changed files with 17 additions and 1 deletions

View file

@ -76,6 +76,10 @@
# Spotify client
spicetify-nix.url = "github:the-argus/spicetify-nix";
spicetify-nix.inputs.nixpkgs.follows = "nixpkgs-unstable";
# Disko
disko.url = "github:nix-community/disko";
disko.inputs.nixpkgs.follows = "nixpkgs-unstable";
};
# }}}

View file

@ -3,6 +3,7 @@
let
imports = [
inputs.hyprland.nixosModules.default
inputs.disko.nixosModules.default
inputs.agenix.nixosModules.default
inputs.stylix.nixosModules.stylix
inputs.nur.nixosModules.nur

View file

@ -28,9 +28,14 @@
# zfs rollback -r zroot@blank
# '';
disko.devices = import ./partitions.nix {
devices = [ "/dev/sda" ];
};
# Boot
boot.loader.grub = {
enable = true;
version = 2;
device = "/dev/sda";
};
}

View file

@ -56,15 +56,21 @@
# {{{ Datasets
datasets = {
"root/persist/data" = {
type = "zfs_fs";
mountpoint = "/persist/data";
options."com.sun:auto-snapshot" = "true";
};
"root/persist/state" = {
type = "zfs_fs";
mountpoint = "/persist/state";
options."com.sun:auto-snapshot" = "true";
};
"root/local/nix" = { mountpoint = "/nix"; };
"root/local/nix" = {
type = "zfs_fs";
mountpoint = "/nix";
};
"root/local/cache" = {
type = "zfs_fs";
mountpoint = "/persist/local/cache";
};
};