76 lines
1.4 KiB
Nix
76 lines
1.4 KiB
Nix
{
|
|
pkgs,
|
|
outputs,
|
|
inputs,
|
|
lib,
|
|
...
|
|
}:
|
|
{
|
|
nixpkgs.config.allowUnfree = true;
|
|
|
|
environment.systemPackages = with pkgs; [
|
|
inputs.agenix.packages."${stdenv.hostPlatform.system}".default
|
|
home-manager
|
|
neovim
|
|
git
|
|
tree
|
|
wget
|
|
tmux
|
|
];
|
|
|
|
users.users."katkak" = {
|
|
isNormalUser = true;
|
|
extraGroups = [ "wheel" ];
|
|
};
|
|
|
|
programs.direnv = {
|
|
enable = true;
|
|
};
|
|
|
|
services.openssh = {
|
|
enable = true;
|
|
};
|
|
|
|
networking = {
|
|
firewall = {
|
|
enable = true;
|
|
};
|
|
};
|
|
|
|
i18n = {
|
|
defaultLocale = "en_US.UTF-8";
|
|
extraLocaleSettings = {
|
|
LC_ALL = "en_US.UTF-8";
|
|
};
|
|
};
|
|
|
|
nix = {
|
|
settings = {
|
|
experimental-features = [
|
|
"nix-command"
|
|
"flakes"
|
|
];
|
|
|
|
trusted-users = [ "katkak" ];
|
|
};
|
|
|
|
gc = {
|
|
automatic = true;
|
|
options = "--delete-older-than 5d";
|
|
};
|
|
|
|
optimise = {
|
|
automatic = true;
|
|
};
|
|
};
|
|
|
|
system = {
|
|
# This value determines the NixOS release from which the default
|
|
# settings for stateful data, like file locations and database versions
|
|
# on your system were taken. It's perfectly fine and recommended to leave
|
|
# this value at the release version of the first install of this system.
|
|
# Before changing this value read the documentation for this option
|
|
# (e.g. man configuration.nix or on https://nixos.org/nixos/options.html).
|
|
stateVersion = "24.05"; # Did you read the comment?
|
|
};
|
|
}
|