From 3899b01611036bd20b194ecd41ddbe34b301c65d Mon Sep 17 00:00:00 2001 From: Sense T Date: Sat, 22 Jul 2023 10:20:36 +0000 Subject: [PATCH] update --- flake.nix | 4 ++-- global/default.nix | 2 +- hardware-configuration.nix | 36 +++++++++++++++++++++++++++--------- 3 files changed, 30 insertions(+), 12 deletions(-) diff --git a/flake.nix b/flake.nix index 140fd49..0a64d96 100644 --- a/flake.nix +++ b/flake.nix @@ -23,7 +23,7 @@ inputs = { nixpkgs.url = "nixpkgs/nixos-23.05"; - #impermanence.url = "github:nix-community/impermanence"; + impermanence.url = "github:nix-community/impermanence"; }; outputs = { self, nixpkgs, ... }: { @@ -39,7 +39,7 @@ modules = [ ./configuration.nix - #impermanence.nixosModules.impermanence + impermanence.nixosModules.impermanence ]; }; }; diff --git a/global/default.nix b/global/default.nix index 96f6729..02196fe 100644 --- a/global/default.nix +++ b/global/default.nix @@ -4,6 +4,6 @@ ./software-configuration.nix ./user-configuration.nix ./containers.nix - #./stateless-configuration.nix + ./stateless-configuration.nix ]; } diff --git a/hardware-configuration.nix b/hardware-configuration.nix index 42f67ee..89bc6b2 100644 --- a/hardware-configuration.nix +++ b/hardware-configuration.nix @@ -4,17 +4,35 @@ { config, lib, pkgs, modulesPath, ... }: { - imports = [ - (modulesPath + "/installer/scan/not-detected.nix") - ]; + imports = [ ]; - boot.initrd.availableKernelModules = [ ]; - boot.initrd.kernelModules = [ ]; - boot.kernelModules = [ ]; - boot.extraModulePackages = [ ]; - boot.loader.grub.devices = [ "nodev" ]; + boot = { + cleanTmpDir = true; + kernelModules = [ "cma=256M" ]; + extraModulePackages = [ ]; - fileSystems."/" = { + loader = { + grub = { + device = "nodev"; + enable = false; + }; + + raspberryPi = { + enable = true; + version = 3; + firmwareConfig = '' + gpu_mem=256 + ''; + + uboot = { + enable = true; + configurationLimit = 10; + }; + }; + }; + }; + + fileSystems."/nix" = { device = "/dev/disk/by-uuid/44444444-4444-4444-8888-888888888888"; fsType = "ext4"; };