35 lines
650 B
Nix
35 lines
650 B
Nix
|
{ config, lib, modulesPath, pkgs, ... }:
|
||
|
let
|
||
|
role = config.host.role;
|
||
|
in
|
||
|
with lib;
|
||
|
{
|
||
|
imports = [ (modulesPath + "/installer/scan/not-detected.nix") ];
|
||
|
|
||
|
config = mkIf (role == "workstation") {
|
||
|
host.ui = {
|
||
|
audio.enable = true;
|
||
|
bluetooth.enable = true;
|
||
|
gnome.enable = true;
|
||
|
flatpak.enable = true;
|
||
|
};
|
||
|
|
||
|
environment.systemPackages = with pkgs; [
|
||
|
direnv
|
||
|
];
|
||
|
|
||
|
boot = {
|
||
|
# Enable Plymouth
|
||
|
plymouth.enable = true;
|
||
|
plymouth.theme = "bgrt";
|
||
|
|
||
|
# Increase minimum log level. This removes ACPI errors from the boot screen.
|
||
|
consoleLogLevel = 1;
|
||
|
|
||
|
# Add kernel parameters
|
||
|
kernelParams = [
|
||
|
"quiet"
|
||
|
];
|
||
|
};
|
||
|
};
|
||
|
}
|