forked from mirrors_public/oddlama_nix-config
feat: disable some more unnecessary stuff for the minimal image
This commit is contained in:
parent
73d7a42879
commit
8fb6b63e6f
4 changed files with 23 additions and 3 deletions
|
@ -1,6 +1,7 @@
|
||||||
{
|
{
|
||||||
inputs,
|
inputs,
|
||||||
config,
|
config,
|
||||||
|
minimal,
|
||||||
...
|
...
|
||||||
}: {
|
}: {
|
||||||
home-manager = {
|
home-manager = {
|
||||||
|
@ -13,6 +14,9 @@
|
||||||
home.stateVersion = config.system.stateVersion;
|
home.stateVersion = config.system.stateVersion;
|
||||||
}
|
}
|
||||||
];
|
];
|
||||||
|
extraSpecialArgs = {
|
||||||
|
inherit minimal;
|
||||||
|
};
|
||||||
};
|
};
|
||||||
|
|
||||||
# Required even when using home-manager's zsh module since the /etc/profile load order
|
# Required even when using home-manager's zsh module since the /etc/profile load order
|
||||||
|
|
|
@ -1,11 +1,16 @@
|
||||||
# Configuration for actual physical machines
|
# Configuration for actual physical machines
|
||||||
{config, ...}: {
|
{
|
||||||
|
config,
|
||||||
|
lib,
|
||||||
|
minimal,
|
||||||
|
...
|
||||||
|
}: {
|
||||||
hardware = {
|
hardware = {
|
||||||
enableRedistributableFirmware = true;
|
enableRedistributableFirmware = true;
|
||||||
enableAllFirmware = true;
|
enableAllFirmware = true;
|
||||||
};
|
};
|
||||||
|
|
||||||
services = {
|
services = lib.mkIf (!minimal) {
|
||||||
fwupd.enable = true;
|
fwupd.enable = true;
|
||||||
smartd.enable = true;
|
smartd.enable = true;
|
||||||
thermald.enable = builtins.elem config.nixpkgs.hostPlatform.system ["x86_64-linux"];
|
thermald.enable = builtins.elem config.nixpkgs.hostPlatform.system ["x86_64-linux"];
|
||||||
|
|
|
@ -1,4 +1,9 @@
|
||||||
{
|
{
|
||||||
|
lib,
|
||||||
|
minimal,
|
||||||
|
...
|
||||||
|
}:
|
||||||
|
lib.optionalAttrs (!minimal) {
|
||||||
programs.nushell = {
|
programs.nushell = {
|
||||||
enable = true;
|
enable = true;
|
||||||
configFile.source = ./config.nu;
|
configFile.source = ./config.nu;
|
||||||
|
|
|
@ -1,4 +1,10 @@
|
||||||
{pkgs, ...}: {
|
{
|
||||||
|
pkgs,
|
||||||
|
lib,
|
||||||
|
minimal,
|
||||||
|
...
|
||||||
|
}:
|
||||||
|
lib.optionalAttrs (!minimal) {
|
||||||
home = {
|
home = {
|
||||||
packages = with pkgs; [
|
packages = with pkgs; [
|
||||||
bandwhich
|
bandwhich
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue