45 lines
1,001 B
Nix
45 lines
1,001 B
Nix
{pkgs, ...}: {
|
|
boot.loader.grub = {
|
|
enable = true;
|
|
device = "/dev/sda";
|
|
};
|
|
|
|
networking.hostName = "prin-server"; # Define your hostname.
|
|
|
|
# Configure network connections interactively with nmcli or nmtui.
|
|
networking.networkmanager.enable = true;
|
|
|
|
# Set your time zone.
|
|
time.timeZone = "Europe/Amsterdam";
|
|
|
|
users.users.prever = {
|
|
isNormalUser = true;
|
|
extraGroups = ["wheel"];
|
|
packages = with pkgs; [
|
|
git
|
|
tree
|
|
];
|
|
};
|
|
|
|
environment.systemPackages = with pkgs; [
|
|
wget
|
|
];
|
|
|
|
services.openssh.enable = true;
|
|
|
|
nixpkgs.config.allowUnfree = true;
|
|
|
|
nix = {
|
|
settings.experimental-features = ["nix-command" "flakes"];
|
|
settings.trusted-public-keys = ["prin:qLlCk6ouH2mKQoiX3UmPX+x8VyEvI7tDYCvEh6+bq0Q="];
|
|
optimise.automatic = true;
|
|
gc = {
|
|
automatic = true;
|
|
dates = "weekly";
|
|
options = "--delete-older-than 7d";
|
|
};
|
|
};
|
|
|
|
home-manager.users.prever.home.stateVersion = "25.11";
|
|
system.stateVersion = "25.11";
|
|
}
|