feat: try rework

This commit is contained in:
Katharina Heidenreich 2026-04-04 11:42:19 +02:00
parent 1ddbd3b8b6
commit ecf10628c3
51 changed files with 1941 additions and 445 deletions

View file

@ -5,30 +5,21 @@
...
}: let
nixosHardwareVersion = "7f1836531b126cfcf584e7d7d71bf8758bb58969";
sopsNixVersion = "8f093d0d2f08f37317778bd94db5951d6cce6c46";
timeZone = "Europe/Berlin";
defaultLocale = "en_US.UTF-8";
storageConfig = import ./data/storage.nix;
fileSystemDefinition = lib.mapAttrs' (
name: value: {
name = storageConfig.${name}.path;
value = {
device = storageConfig.${name}.source;
fsType = storageConfig.${name}.type;
options = storageConfig.${name}.options;
} // (storageConfig.${name}.extra or {});
}) storageConfig;
storageModel = import ./intermediate/storage.nix;
in {
imports = [
"${fetchTarball "https://github.com/NixOS/nixos-hardware/archive/${nixosHardwareVersion}.tar.gz"}/raspberry-pi/4"
./network/static-ip.nix
"${fetchTarball "https://github.com/Mic92/sops-nix/archive/${sopsNixVersion}.tar.gz"}/modules/sops"
./system
./services
./users
./programs
./secret
];
fileSystems = fileSystemDefinition;
fileSystems = storageModel.fileSystems;
networking.hostName = "raspberry";
@ -95,6 +86,8 @@ in {
options = "--delete-older-than +5"; # Keep last 5 generations
};
nix.settings.experimental-features = [ "nix-command" "flakes" ];
# Enable GPU acceleration
hardware.raspberry-pi."4".fkms-3d.enable = true;