Added new disco config

This commit is contained in:
Aleksandr Lebedev 2024-12-28 15:16:39 +01:00
parent 3f06e35f3f
commit 7a0f467c50
4 changed files with 53 additions and 2 deletions

View file

@ -74,7 +74,7 @@ pkgs = import nixpkgs {
}; };
}; };
modules = [ modules = [
(import ./nixos/modules/disko/impermanence-disko.nix { device = "/dev/nvme0n1"; } ) (import ./nixos/modules/disko/impermanence-btrfs.nix { device = "/dev/nvme0n1"; } )
./nixos/configuration.nix ./nixos/configuration.nix
#nix-flatpak.nixosModules.default #nix-flatpak.nixosModules.default
]; ];

View file

@ -13,7 +13,7 @@
../../users/tania ../../users/tania
]; ];
environment.systemPackages = [ environment.systemPackages = with pkgs;[
blender blender
#inputs.nix-gaming.packages.${pkgs.system}.star-citizen #inputs.nix-gaming.packages.${pkgs.system}.star-citizen

View file

@ -0,0 +1,51 @@
{
device ? throw "Set this to your disk device, e.g. /dev/sda",
...
}: {
disko.devices = {
disk.main = {
inherit device;
type = "disk";
content = {
type = "gpt";
partitions = {
boot = {
name = "boot";
size = "1M";
type = "EF02";
};
esp = {
name = "ESP";
size = "500M";
type = "EF00";
content = {
type = "filesystem";
format = "vfat";
mountpoint = "/boot";
};
};
root = {
name = "root";
size = "100%";
content = {
type = "filesystem";
format = "ext4";
mountpoint = "/persist";
};
};
};
};
};
nodev = {
"/" = {
fsType = "tmpfs";
};
"/nix" = {
device = "/persist/nix";
};
"/tmp" = {
device = "/persist/tmp";
};
};
};
}