mirror of
https://codeberg.org/jopejoe1/nix-conf.git
synced 2024-12-29 01:26:34 +01:00
add disk
This commit is contained in:
parent
798031b8e9
commit
2af0a820ee
3 changed files with 48 additions and 21 deletions
|
@ -10,6 +10,7 @@
|
|||
{
|
||||
imports = [
|
||||
./hardware.nix
|
||||
./disk.nix
|
||||
nixos-hardware.nixosModules.framework-16-7040-amd
|
||||
self.inputs.srvos.nixosModules.desktop
|
||||
];
|
||||
|
|
42
systems/omoikane/disk.nix
Normal file
42
systems/omoikane/disk.nix
Normal file
|
@ -0,0 +1,42 @@
|
|||
{...}:
|
||||
{
|
||||
disko.devices = {
|
||||
disk = {
|
||||
main = {
|
||||
device = "/dev/nvme0n1";
|
||||
type = "disk";
|
||||
content = {
|
||||
type = "gpt";
|
||||
partitions = {
|
||||
ESP = {
|
||||
end = "500M";
|
||||
type = "EF00";
|
||||
content = {
|
||||
type = "filesystem";
|
||||
format = "vfat";
|
||||
mountpoint = "/boot";
|
||||
mountOptions = [ "umask=0077" ];
|
||||
};
|
||||
};
|
||||
root = {
|
||||
name = "root";
|
||||
end = "-0";
|
||||
content = {
|
||||
type = "luks";
|
||||
name = "crypto";
|
||||
settings = {
|
||||
allowDiscards = true;
|
||||
};
|
||||
content = {
|
||||
type = "filesystem";
|
||||
format = "bcachefs";
|
||||
mountpoint = "/";
|
||||
};
|
||||
};
|
||||
};
|
||||
};
|
||||
};
|
||||
};
|
||||
};
|
||||
};
|
||||
}
|
|
@ -9,27 +9,11 @@
|
|||
}:
|
||||
|
||||
{
|
||||
fileSystems."/" = {
|
||||
device = "/dev/disk/by-uuid/6842a9de-c5fd-4648-b3b8-f76e56633825";
|
||||
fsType = "ext4";
|
||||
};
|
||||
|
||||
boot.initrd.luks.devices."luks-eaed8652-a306-4434-a187-71e6fcb13e71".device = "/dev/disk/by-uuid/eaed8652-a306-4434-a187-71e6fcb13e71";
|
||||
|
||||
fileSystems."/boot" = {
|
||||
device = "/dev/disk/by-uuid/7C5A-EE45";
|
||||
fsType = "vfat";
|
||||
options = [
|
||||
"fmask=0022"
|
||||
"dmask=0022"
|
||||
];
|
||||
};
|
||||
|
||||
fileSystems."/home/jopejoe1/Public/games" = {
|
||||
device = "/dev/sda";
|
||||
fsType = "bcachefs";
|
||||
options = [ "compression=zstd" ];
|
||||
};
|
||||
# fileSystems."/home/jopejoe1/Public/games" = {
|
||||
# device = "/dev/sda";
|
||||
# fsType = "bcachefs";
|
||||
# options = [ "compression=zstd" ];
|
||||
# };
|
||||
|
||||
powerManagement.cpuFreqGovernor = lib.mkDefault "ondemand";
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue