30 lines
489 B
Nix
30 lines
489 B
Nix
{
|
|
hostType,
|
|
lib,
|
|
pkgs,
|
|
...
|
|
}:
|
|
|
|
{
|
|
config = lib.mkMerge [
|
|
# Common configuration
|
|
{
|
|
services = {
|
|
fwupd.enable = true;
|
|
fstrim.enable = true;
|
|
};
|
|
}
|
|
|
|
# Server specific configuration
|
|
(lib.mkIf hostType.isServer {
|
|
})
|
|
|
|
# Workstation specific configuration
|
|
(lib.mkIf hostType.isWorkstation {
|
|
services = {
|
|
printing.enable = true;
|
|
udev.packages = with pkgs; [ yubikey-personalization ];
|
|
};
|
|
})
|
|
];
|
|
}
|