2024-01-02 18:54:46 -06:00
|
|
|
{
|
2024-01-04 14:45:10 -06:00
|
|
|
# flake,
|
2024-01-02 18:54:46 -06:00
|
|
|
inputs,
|
|
|
|
outputs,
|
|
|
|
lib,
|
|
|
|
config,
|
|
|
|
modulesPath,
|
|
|
|
...
|
|
|
|
}: {
|
|
|
|
imports =
|
|
|
|
[
|
|
|
|
(modulesPath + "/installer/scan/not-detected.nix")
|
|
|
|
inputs.disko.nixosModules.disko
|
2024-01-04 14:45:10 -06:00
|
|
|
# flake.diskoConfigurations.standard
|
2024-01-02 18:54:46 -06:00
|
|
|
]
|
2024-01-04 14:45:10 -06:00
|
|
|
++ (
|
|
|
|
with outputs.nixosModules; [
|
|
|
|
desktop-usage
|
|
|
|
wifi
|
|
|
|
]
|
|
|
|
)
|
|
|
|
++ (with outputs.homeManagerModules; [
|
|
|
|
sway
|
2024-01-02 18:54:46 -06:00
|
|
|
]);
|
|
|
|
|
|
|
|
nixpkgs = {
|
|
|
|
overlays = [
|
|
|
|
outputs.overlays.additions
|
|
|
|
outputs.overlays.modifications
|
|
|
|
outputs.overlays.unstable-packages
|
|
|
|
];
|
|
|
|
config = {
|
|
|
|
allowUnfree = true;
|
|
|
|
};
|
|
|
|
};
|
|
|
|
|
|
|
|
nix = {
|
|
|
|
registry = lib.mapAttrs (_: value: {flake = value;}) inputs;
|
|
|
|
nixPath = lib.mapAttrsToList (key: value: "${key}=${value.to.path}") config.nix.registry;
|
|
|
|
|
|
|
|
settings = {
|
|
|
|
experimental-features = "nix-command flakes";
|
|
|
|
auto-optimise-store = true;
|
|
|
|
};
|
|
|
|
};
|
|
|
|
|
|
|
|
# not necessarily "base", but all my machines are UEFI so...
|
2024-01-04 14:45:10 -06:00
|
|
|
# boot.loader.systemd-boot.enable = true;
|
2024-01-02 18:54:46 -06:00
|
|
|
|
|
|
|
networking = {
|
|
|
|
firewall = {
|
|
|
|
enable = true;
|
|
|
|
allowPing = true;
|
|
|
|
allowedTCPPorts = [22];
|
|
|
|
allowedUDPPorts = [];
|
|
|
|
};
|
|
|
|
};
|
|
|
|
|
|
|
|
system.stateVersion = "23.11";
|
|
|
|
}
|