mirror of
https://github.com/kaesaecracker/nixos-configuration.git
synced 2025-01-18 18:40:14 +01:00
55 lines
834 B
Nix
55 lines
834 B
Nix
{
|
|
config,
|
|
pkgs,
|
|
...
|
|
}: let
|
|
cfg = config.my;
|
|
in {
|
|
imports = [
|
|
./home
|
|
./desktop
|
|
./i18n.nix
|
|
./nixpkgs.nix
|
|
];
|
|
|
|
config = {
|
|
networking = {
|
|
networkmanager.enable = true;
|
|
firewall.enable = true;
|
|
};
|
|
|
|
# Enable the OpenSSH daemon.
|
|
services.openssh = {
|
|
enable = true;
|
|
settings = {
|
|
PermitRootLogin = "no";
|
|
PasswordAuthentication = false;
|
|
KbdInteractiveAuthentication = false;
|
|
};
|
|
};
|
|
|
|
systemd.extraConfig = ''
|
|
DefaultTimeoutStopSec=12s
|
|
'';
|
|
|
|
programs = {
|
|
zsh.enable = true;
|
|
|
|
git = {
|
|
enable = true;
|
|
package = pkgs.gitFull;
|
|
};
|
|
};
|
|
|
|
environment = {
|
|
pathsToLink = ["/share/zsh"];
|
|
|
|
systemPackages = with pkgs; [
|
|
lm_sensors
|
|
tldr
|
|
ncdu
|
|
];
|
|
};
|
|
};
|
|
}
|