2024-04-08 20:32:17 +02:00
|
|
|
{
|
|
|
|
inputs,
|
|
|
|
outputs,
|
|
|
|
lib,
|
|
|
|
config,
|
|
|
|
pkgs,
|
|
|
|
...
|
|
|
|
}: {
|
|
|
|
imports = [
|
2024-04-22 21:01:29 +02:00
|
|
|
./components/bootloader.nix
|
|
|
|
./components/networking.nix
|
|
|
|
./components/packages.nix
|
|
|
|
./components/security.nix
|
|
|
|
|
2024-04-22 06:39:13 +02:00
|
|
|
./locales/paris.nix
|
|
|
|
|
2024-04-22 20:48:35 +02:00
|
|
|
./programs/neovim.nix
|
|
|
|
./programs/zsh.nix
|
|
|
|
./programs/git.nix
|
2024-04-22 21:01:29 +02:00
|
|
|
|
|
|
|
./services/sshd.nix
|
2024-04-08 20:32:17 +02:00
|
|
|
];
|
|
|
|
|
2024-04-22 21:01:29 +02:00
|
|
|
nix = {
|
|
|
|
settings = {
|
|
|
|
# Enable flakes and new 'nix' command
|
|
|
|
experimental-features = "nix-command flakes";
|
|
|
|
# Deduplicate and optimize nix store
|
|
|
|
auto-optimise-store = true;
|
|
|
|
};
|
2024-04-08 20:32:17 +02:00
|
|
|
|
2024-04-22 21:01:29 +02:00
|
|
|
# This will add each flake input as a registry
|
|
|
|
# To make nix3 commands consistent with your flake
|
|
|
|
registry = (lib.mapAttrs (_: flake: {inherit flake;})) ((lib.filterAttrs (_: lib.isType "flake")) inputs);
|
|
|
|
|
|
|
|
# This will additionally add your inputs to the system's legacy channels
|
|
|
|
# Making legacy nix commands consistent as well, awesome!
|
|
|
|
nixPath = ["/etc/nix/path"];
|
|
|
|
};
|
2024-04-08 20:32:17 +02:00
|
|
|
|
|
|
|
environment.etc =
|
|
|
|
lib.mapAttrs'
|
|
|
|
(name: value: {
|
|
|
|
name = "nix/path/${name}";
|
|
|
|
value.source = value.flake;
|
|
|
|
})
|
|
|
|
config.nix.registry;
|
|
|
|
|
2024-04-22 21:01:29 +02:00
|
|
|
nixpkgs = {
|
|
|
|
overlays = [
|
|
|
|
outputs.overlays.additions
|
|
|
|
outputs.overlays.modifications
|
|
|
|
outputs.overlays.unstable-packages
|
2024-04-22 06:39:13 +02:00
|
|
|
];
|
2024-04-08 20:32:17 +02:00
|
|
|
};
|
|
|
|
|
2024-04-22 04:57:27 +02:00
|
|
|
# Some programs need SUID wrappers, can be configured further or are
|
|
|
|
# started in user sessions.
|
|
|
|
programs.mtr.enable = true;
|
|
|
|
programs.gnupg.agent = {
|
2024-04-11 17:08:50 +02:00
|
|
|
enable = true;
|
2024-04-22 04:57:27 +02:00
|
|
|
enableSSHSupport = true;
|
2024-04-22 21:01:29 +02:00
|
|
|
};
|
2024-04-22 04:57:27 +02:00
|
|
|
|
|
|
|
services = {
|
|
|
|
fwupd.enable = true;
|
|
|
|
tailscale.enable = true;
|
|
|
|
};
|
2024-04-08 20:32:17 +02:00
|
|
|
}
|