feat: use diskie for alice as well
Signed-off-by: buffet <dev@buffet.sh>
This commit is contained in:
parent
78ed21aa75
commit
f122de5964
3 changed files with 43 additions and 15 deletions
|
@ -1,8 +1,8 @@
|
||||||
{
|
{
|
||||||
agenix,
|
agenix,
|
||||||
|
disko,
|
||||||
home-manager,
|
home-manager,
|
||||||
lix-module,
|
lix-module,
|
||||||
nixos-hardware,
|
|
||||||
nur,
|
nur,
|
||||||
pkgs,
|
pkgs,
|
||||||
...
|
...
|
||||||
|
@ -11,11 +11,13 @@
|
||||||
./hardware-configuration.nix
|
./hardware-configuration.nix
|
||||||
./system.nix
|
./system.nix
|
||||||
agenix.nixosModules.default
|
agenix.nixosModules.default
|
||||||
|
disko.nixosModules.disko
|
||||||
home-manager.nixosModule
|
home-manager.nixosModule
|
||||||
lix-module.nixosModules.default
|
lix-module.nixosModules.default
|
||||||
nur.nixosModules.nur
|
nur.nixosModules.nur
|
||||||
|
|
||||||
./borg.nix
|
./borg.nix
|
||||||
|
./disk-config.nix
|
||||||
./gdm.nix
|
./gdm.nix
|
||||||
./pipewire.nix
|
./pipewire.nix
|
||||||
./printer.nix
|
./printer.nix
|
||||||
|
|
40
hosts/alice/disk-config.nix
Normal file
40
hosts/alice/disk-config.nix
Normal file
|
@ -0,0 +1,40 @@
|
||||||
|
{
|
||||||
|
disko.devices = {
|
||||||
|
disk.main = {
|
||||||
|
device = "/dev/nvme0n1";
|
||||||
|
type = "disk";
|
||||||
|
content = {
|
||||||
|
type = "gpt";
|
||||||
|
partitions = {
|
||||||
|
esp = {
|
||||||
|
name = "esp";
|
||||||
|
size = "1G";
|
||||||
|
type = "EF00";
|
||||||
|
content = {
|
||||||
|
type = "filesystem";
|
||||||
|
format = "vfat";
|
||||||
|
mountpoint = "/boot";
|
||||||
|
mountOptions = ["umask=0077"];
|
||||||
|
};
|
||||||
|
};
|
||||||
|
luks = {
|
||||||
|
size = "100%";
|
||||||
|
label = "luks";
|
||||||
|
content = {
|
||||||
|
type = "luks";
|
||||||
|
name = "crypted";
|
||||||
|
settings = {
|
||||||
|
allowDiscards = true;
|
||||||
|
};
|
||||||
|
content = {
|
||||||
|
type = "filesystem";
|
||||||
|
format = "ext4";
|
||||||
|
mountpoint = "/";
|
||||||
|
};
|
||||||
|
};
|
||||||
|
};
|
||||||
|
};
|
||||||
|
};
|
||||||
|
};
|
||||||
|
};
|
||||||
|
}
|
|
@ -19,20 +19,6 @@
|
||||||
extraModulePackages = [];
|
extraModulePackages = [];
|
||||||
};
|
};
|
||||||
|
|
||||||
fileSystems."/" = {
|
|
||||||
device = "UUID=288cfd6e-dd6d-4ac4-bc2f-36c1309f8619";
|
|
||||||
fsType = "bcachefs";
|
|
||||||
};
|
|
||||||
|
|
||||||
fileSystems."/boot" = {
|
|
||||||
device = "/dev/disk/by-uuid/6029-DD49";
|
|
||||||
fsType = "vfat";
|
|
||||||
};
|
|
||||||
|
|
||||||
swapDevices = [
|
|
||||||
{device = "/dev/disk/by-uuid/62a6b7a0-413a-46e8-bf6f-aba4eedf06a9";}
|
|
||||||
];
|
|
||||||
|
|
||||||
# Enables DHCP on each ethernet and wireless interface. In case of scripted networking
|
# Enables DHCP on each ethernet and wireless interface. In case of scripted networking
|
||||||
# (the default) this is the recommended approach. When using systemd-networkd it's
|
# (the default) this is the recommended approach. When using systemd-networkd it's
|
||||||
# still possible to use this option, but it's recommended to use it in conjunction
|
# still possible to use this option, but it's recommended to use it in conjunction
|
||||||
|
|
Loading…
Reference in a new issue