This commit is contained in:
Sense T 2023-07-22 10:20:36 +00:00
parent 432c6488e4
commit 3899b01611
3 changed files with 30 additions and 12 deletions

View File

@ -23,7 +23,7 @@
inputs = { inputs = {
nixpkgs.url = "nixpkgs/nixos-23.05"; nixpkgs.url = "nixpkgs/nixos-23.05";
#impermanence.url = "github:nix-community/impermanence"; impermanence.url = "github:nix-community/impermanence";
}; };
outputs = { self, nixpkgs, ... }: { outputs = { self, nixpkgs, ... }: {
@ -39,7 +39,7 @@
modules = [ modules = [
./configuration.nix ./configuration.nix
#impermanence.nixosModules.impermanence impermanence.nixosModules.impermanence
]; ];
}; };
}; };

View File

@ -4,6 +4,6 @@
./software-configuration.nix ./software-configuration.nix
./user-configuration.nix ./user-configuration.nix
./containers.nix ./containers.nix
#./stateless-configuration.nix ./stateless-configuration.nix
]; ];
} }

View File

@ -4,17 +4,35 @@
{ config, lib, pkgs, modulesPath, ... }: { config, lib, pkgs, modulesPath, ... }:
{ {
imports = [ imports = [ ];
(modulesPath + "/installer/scan/not-detected.nix")
];
boot.initrd.availableKernelModules = [ ]; boot = {
boot.initrd.kernelModules = [ ]; cleanTmpDir = true;
boot.kernelModules = [ ]; kernelModules = [ "cma=256M" ];
boot.extraModulePackages = [ ]; extraModulePackages = [ ];
boot.loader.grub.devices = [ "nodev" ];
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"; device = "/dev/disk/by-uuid/44444444-4444-4444-8888-888888888888";
fsType = "ext4"; fsType = "ext4";
}; };