Compare commits

..

7 commits

Author SHA1 Message Date
Aaron Honeycutt
f201dc75a5 add gnome to nixos device 2025-02-18 17:29:20 +00:00
c64c47303f it did not like having different values 2025-02-18 10:19:42 -07:00
Aaron Honeycutt
c3c0917a7b turn off plymouth for VMs 2025-02-18 17:13:54 +00:00
Aaron Honeycutt
120d2a2336 fix spacing 2025-02-18 17:11:21 +00:00
Aaron Honeycutt
9515e7a216 luks-lvm.nix : disable keyfile 2025-02-18 16:58:02 +00:00
Aaron Honeycutt
144939bb98 up the EFI partition from 500MB to 1GB 2025-02-18 16:48:40 +00:00
Aaron Honeycutt
ce0a630a0c Add new file 2025-02-18 16:29:12 +00:00
3 changed files with 97 additions and 28 deletions

View file

@ -71,15 +71,11 @@
lshw lshw
restic restic
roboto-slab roboto-slab
syncthing
nvd nvd
unzip unzip
wget wget
xz xz
zlib zlib
# Packages from Flake Inputs
#inputs.nix-software-center.packages.${system}.nix-software-center
]; ];
# Enable/Disable hardware # Enable/Disable hardware

View file

@ -27,6 +27,7 @@
# Add Disko for disk management # Add Disko for disk management
disko.nixosModules.disko disko.nixosModules.disko
./disko-config.nix ./disko-config.nix
./gnome.nix
./configuration.nix ./configuration.nix
./hardware-configuration.nix ./hardware-configuration.nix
]; ];

72
partitions/luks-lvm.nix Normal file
View file

@ -0,0 +1,72 @@
{
disko.devices = {
disk = {
main = {
type = "disk";
device = "/dev/sda";
content = {
type = "gpt";
partitions = {
ESP = {
size = "1G";
type = "EF00";
content = {
type = "filesystem";
format = "vfat";
mountpoint = "/boot";
mountOptions = [ "umask=0077" ];
};
};
luks = {
size = "100%";
content = {
type = "luks";
name = "crypted";
extraOpenArgs = [ ];
settings = {
# if you want to use the key for interactive login be sure there is no trailing newline
# for example use `echo -n "password" > /tmp/secret.key`
#keyFile = "/tmp/secret.key";
allowDiscards = true;
};
content = {
type = "lvm_pv";
vg = "pool";
};
};
};
};
};
};
};
lvm_vg = {
pool = {
type = "lvm_vg";
lvs = {
root = {
size = "100%";
content = {
type = "filesystem";
format = "ext4";
mountpoint = "/";
mountOptions = [
"defaults"
];
};
};
home = {
size = "10M";
content = {
type = "filesystem";
format = "ext4";
mountpoint = "/home";
};
};
raw = {
size = "10M";
};
};
};
};
};
}