2024-04-04 00:50:53 +02:00
|
|
|
{
|
|
|
|
config,
|
|
|
|
pkgs,
|
2024-04-05 01:44:59 +02:00
|
|
|
inputs,
|
|
|
|
outputs,
|
2024-04-04 00:50:53 +02:00
|
|
|
...
|
|
|
|
}: {
|
|
|
|
# Bootloader.
|
|
|
|
boot.loader.systemd-boot.enable = true;
|
|
|
|
boot.loader.efi.canTouchEfiVariables = true;
|
|
|
|
nix = {
|
|
|
|
package = pkgs.nixFlakes;
|
|
|
|
extraOptions = ''
|
|
|
|
experimental-features = nix-command flakes
|
|
|
|
'';
|
2024-05-07 02:05:40 +02:00
|
|
|
optimise.automatic = true;
|
|
|
|
settings = {
|
|
|
|
auto-optimise-store = true;
|
|
|
|
};
|
|
|
|
gc = {
|
|
|
|
automatic = true;
|
|
|
|
dates = "weekly";
|
|
|
|
options = "--delete-older-than 30d";
|
|
|
|
};
|
2024-04-04 00:50:53 +02:00
|
|
|
};
|
|
|
|
|
|
|
|
# Allow unfree packages
|
|
|
|
nixpkgs.config.allowUnfree = true;
|
|
|
|
|
|
|
|
# packages that should be on every system.
|
|
|
|
environment.systemPackages = with pkgs; [
|
2024-04-05 01:44:59 +02:00
|
|
|
neovim # Do not forget to add an editor to edit configuration.nix! The Nano editor is also installed by default.
|
2024-04-04 00:50:53 +02:00
|
|
|
];
|
2024-04-05 01:44:59 +02:00
|
|
|
|
|
|
|
home-manager.useGlobalPkgs = true;
|
|
|
|
home-manager.useUserPackages = true;
|
|
|
|
home-manager.extraSpecialArgs = {inherit inputs outputs;};
|
2024-04-04 00:50:53 +02:00
|
|
|
}
|