disable unused modules

This commit is contained in:
Alejandro Diaz 2023-09-10 22:25:55 -06:00
parent a90ae6050c
commit df2c680394
2 changed files with 38 additions and 29 deletions

View file

@ -3,7 +3,7 @@
### Compilation command: ### Compilation command:
```bash ```bash
nix build .\#nixosConfigurations.triviOS.config.system.build.toplevel nix build .\#nixosConfigurations.triviOS.config.system.build.sdImage --no-link --print-build-logs
``` ```

View file

@ -5,7 +5,17 @@
# #
# Copyright (C) 2023 - Group 8 # Copyright (C) 2023 - Group 8
{ pkgs, ... }: { { pkgs, modulesPath, ... }: {
imports = [
(modulesPath + "/installer/sd-card/sd-image-aarch64.nix")
(modulesPath + "/profiles/minimal.nix")
];
disabledModules = [
(modulesPath + "/profiles/base.nix")
(modulesPath + "/profiles/all-hardware.nix")
];
system.stateVersion = "23.05"; system.stateVersion = "23.05";
@ -13,45 +23,44 @@
distroName = "TriviOS"; distroName = "TriviOS";
variant_id = "rpi3"; variant_id = "rpi3";
}; };
sdImage.imageBaseName = "trivios-sd-image";
nix.enable = false;
hardware.enableRedistributableFirmware = true; hardware.enableRedistributableFirmware = true;
environment.systemPackages = with pkgs; [ libraspberrypi ]; environment.systemPackages = with pkgs; [
libraspberrypi
(python3.withPackages (py: [ py.django ]))
];
networking.wireless.enable = true; networking.wireless.enable = true;
services.openssh = {
enable = true;
settings.PasswordAuthentication = true;
settings.PermitRootLogin = "yes";
};
users.users."root".initialPassword = "password";
boot = { boot = {
loader = { # Doesn't work per https://github.com/NixOS/nixpkgs/issues/146199
raspberryPi = { # loader.raspberryPi = {
enable = true; # enable = true;
version = 3; # version = 3;
firmwareConfig = '' # firmwareConfig = ''
core_freq=250 # core_freq=250
''; # gpu_mem=256
}; # '';
grub.enable = false; # };
};
initrd.includeDefaultModules = false; initrd.includeDefaultModules = false;
kernelPackages = pkgs.linuxPackages_rpi3; kernelPackages = pkgs.linuxPackages_rpi3;
kernelParams = [ kernelParams = [
"console=ttyS1,115200n8" "console=ttyS1,115200n8"
"cma=256M"
]; ];
}; };
fileSystems = {
"/" = {
device = "/dev/disk/by-uuid/B007-B007";
fsType = "vfat";
options = [ "umask=027" ];
};
};
documentation = {
enable = false;
nixos.enable = false;
man.enable = false;
doc.enable = false;
info.enable = false;
};
services.timesyncd.enable = false; services.timesyncd.enable = false;
systemd.oomd.enable = false; systemd.oomd.enable = false;
systemd.coredump.enable = false; systemd.coredump.enable = false;