1
1
Fork 1
mirror of https://github.com/oddlama/nix-config.git synced 2025-10-11 07:10:39 +02:00

chore: update to main nixpkgs, include my temporary switch-to-configuration changes

This commit is contained in:
oddlama 2023-07-24 21:42:01 +02:00
parent 1110bdcac1
commit 4175ce3cf7
No known key found for this signature in database
GPG key ID: 14EFE510775FE39A
11 changed files with 1024 additions and 1257 deletions

View file

@ -1,7 +1,6 @@
{
config,
lib,
pkgs,
...
}: {
disko.devices = {

View file

@ -8,14 +8,14 @@
../../modules/optional/zfs.nix
#./dnsmasq.nix
./esphome.nix
#./esphome.nix
./fs.nix
./home-assistant.nix
./hostapd.nix
./mosquitto.nix
#./home-assistant.nix
#./hostapd.nix
#./mosquitto.nix
./net.nix
./nginx.nix
./zigbee2mqtt.nix
#./nginx.nix
#./zigbee2mqtt.nix
];
# TODO boot.loader.grub.devices = ["/dev/disk/by-id/${config.repo.secrets.local.disk.main}"];

View file

@ -1,19 +1,29 @@
{
# TODO disko
fileSystems = {
"/" = {
device = "rpool/root/nixos";
fsType = "zfs";
options = ["zfsutil" "X-mount.mkdir"];
config,
lib,
...
}: {
disko.devices = {
disk = {
mmc = {
type = "disk";
device = "/dev/disk/by-id/${config.repo.secrets.local.disk.mmc}";
content = with lib.disko.gpt; {
type = "table";
format = "gpt";
partitions = [
(partEfi "efi" "0%" "1GiB")
(partSwap "swap" "1GiB" "9GiB")
(partLuksZfs "rpool" "9GiB" "100%")
];
};
};
};
"/boot" = {
device = "/dev/disk/by-uuid/c0bb3411-7af3-4901-83ea-eb2560b11784";
fsType = "ext4";
zpool = with lib.disko.zfs; {
rpool = defaultZpoolOptions // {datasets = defaultZfsDatasets;};
};
};
swapDevices = [
{device = "/dev/disk/by-uuid/a4a5fee7-2b6f-4cec-9ec9-fc4b71e8055a";}
];
boot.loader.grub.devices = ["/dev/disk/by-id/${config.repo.secrets.local.disk.mmc}"];
boot.initrd.luks.devices.enc-rpool.allowDiscards = true;
}