nix/nixos/minimal.nix
2024-05-01 11:11:13 +09:00

22 lines
606 B
Nix

{ pkgs, hostname, stateVersion, username, inputs, system, ... }: {
imports = [
# Modules
inputs.disko.nixosModules.disko
# Services
./common/services/openssh.nix
./common/services/fail2ban.nix
# Software
./common/software/packages/small.nix
# NixOS Modules
./common/modules/networking.nix # Initial Networking configs
./common/modules/nixos.nix # Common NixOS Configurations
./users/${username}
./hosts/${hostname}
] ++ lib.optional (builtins.isString desktop) ./common/desktops/${desktop};
programs.fish.enable = true;
}