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

feat: disable some more unnecessary stuff for the minimal image

This commit is contained in:
oddlama 2023-09-26 22:08:18 +02:00
parent 73d7a42879
commit 8fb6b63e6f
No known key found for this signature in database
GPG key ID: 14EFE510775FE39A
4 changed files with 23 additions and 3 deletions

View file

@ -1,6 +1,7 @@
{
inputs,
config,
minimal,
...
}: {
home-manager = {
@ -13,6 +14,9 @@
home.stateVersion = config.system.stateVersion;
}
];
extraSpecialArgs = {
inherit minimal;
};
};
# Required even when using home-manager's zsh module since the /etc/profile load order

View file

@ -1,11 +1,16 @@
# Configuration for actual physical machines
{config, ...}: {
{
config,
lib,
minimal,
...
}: {
hardware = {
enableRedistributableFirmware = true;
enableAllFirmware = true;
};
services = {
services = lib.mkIf (!minimal) {
fwupd.enable = true;
smartd.enable = true;
thermald.enable = builtins.elem config.nixpkgs.hostPlatform.system ["x86_64-linux"];

View file

@ -1,4 +1,9 @@
{
lib,
minimal,
...
}:
lib.optionalAttrs (!minimal) {
programs.nushell = {
enable = true;
configFile.source = ./config.nu;

View file

@ -1,4 +1,10 @@
{pkgs, ...}: {
{
pkgs,
lib,
minimal,
...
}:
lib.optionalAttrs (!minimal) {
home = {
packages = with pkgs; [
bandwhich