This commit is contained in:
Your Name 2024-11-19 22:09:04 +00:00
parent 798031b8e9
commit 2af0a820ee
3 changed files with 48 additions and 21 deletions

View file

@ -10,6 +10,7 @@
{ {
imports = [ imports = [
./hardware.nix ./hardware.nix
./disk.nix
nixos-hardware.nixosModules.framework-16-7040-amd nixos-hardware.nixosModules.framework-16-7040-amd
self.inputs.srvos.nixosModules.desktop self.inputs.srvos.nixosModules.desktop
]; ];

42
systems/omoikane/disk.nix Normal file
View 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 = "/";
};
};
};
};
};
};
};
};
}

View file

@ -9,27 +9,11 @@
}: }:
{ {
fileSystems."/" = { # fileSystems."/home/jopejoe1/Public/games" = {
device = "/dev/disk/by-uuid/6842a9de-c5fd-4648-b3b8-f76e56633825"; # device = "/dev/sda";
fsType = "ext4"; # fsType = "bcachefs";
}; # options = [ "compression=zstd" ];
# };
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" ];
};
powerManagement.cpuFreqGovernor = lib.mkDefault "ondemand"; powerManagement.cpuFreqGovernor = lib.mkDefault "ondemand";
} }