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
|
2024-04-22 21:47:52 +02:00
|
|
|
./components/packages-base.nix
|
2024-04-22 21:01:29 +02:00
|
|
|
./components/security.nix
|
|
|
|
|
2024-04-22 06:39:13 +02:00
|
|
|
./locales/paris.nix
|
|
|
|
|
2024-04-26 15:26:18 +02:00
|
|
|
./programs/git.nix
|
2024-04-22 20:48:35 +02:00
|
|
|
./programs/neovim.nix
|
|
|
|
./programs/zsh.nix
|
2024-04-26 15:26:18 +02:00
|
|
|
./programs/ssh.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-23 16:19:33 +02:00
|
|
|
|
|
|
|
warn-dirty = false;
|
2024-04-22 21:01:29 +02:00
|
|
|
};
|
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:24:54 +02:00
|
|
|
nixpkgs = {
|
2024-04-22 21:01:29 +02:00
|
|
|
overlays = [
|
|
|
|
outputs.overlays.additions
|
|
|
|
outputs.overlays.modifications
|
|
|
|
outputs.overlays.unstable-packages
|
2024-04-22 06:39:13 +02:00
|
|
|
];
|
2024-04-22 22:03:23 +02:00
|
|
|
|
2024-04-23 17:29:48 +02:00
|
|
|
# Unfree packages that can be installes regardless of the machine's free software policy
|
2024-04-22 22:03:23 +02:00
|
|
|
config.allowUnfreePredicate = pkg:
|
2024-04-23 16:19:33 +02:00
|
|
|
builtins.elem (lib.getName pkg) [
|
|
|
|
# Steam
|
|
|
|
"steam"
|
|
|
|
"steam-original"
|
|
|
|
"steam-run"
|
2024-04-22 22:03:23 +02:00
|
|
|
|
2024-04-23 16:19:33 +02:00
|
|
|
# Nvidia drivers
|
|
|
|
"nvidia-x11"
|
|
|
|
"nvidia-settings"
|
2024-05-29 22:41:28 +02:00
|
|
|
|
|
|
|
# osu!
|
2024-04-23 18:26:19 +02:00
|
|
|
"osu-lazer-bin"
|
2024-06-24 10:16:41 +02:00
|
|
|
|
|
|
|
"android-studio-stable"
|
2024-04-23 16:19:33 +02:00
|
|
|
];
|
2024-04-08 20:32:17 +02:00
|
|
|
};
|
|
|
|
|
2024-05-30 17:28:31 +02:00
|
|
|
boot.kernelPackages = pkgs.linuxPackages_6_6;
|
|
|
|
|
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:24:54 +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
|
|
|
}
|