2023-04-04 21:13:03 +02:00
|
|
|
{
|
|
|
|
config,
|
|
|
|
pkgs,
|
2023-09-02 14:54:30 +02:00
|
|
|
modulesPath,
|
2023-09-09 13:36:21 +02:00
|
|
|
lib,
|
2023-04-04 21:13:03 +02:00
|
|
|
...
|
2023-09-09 13:36:21 +02:00
|
|
|
}:
|
|
|
|
with lib; let
|
|
|
|
cfg = config.my;
|
|
|
|
in {
|
2023-04-04 21:13:03 +02:00
|
|
|
imports = [
|
2023-09-09 15:21:27 +02:00
|
|
|
./home
|
2023-09-09 15:44:15 +02:00
|
|
|
./desktop
|
|
|
|
./i18n.nix
|
|
|
|
./nixpkgs.nix
|
2023-09-02 14:53:25 +02:00
|
|
|
(modulesPath + "/installer/scan/not-detected.nix")
|
2023-04-04 21:13:03 +02:00
|
|
|
];
|
|
|
|
|
2023-09-09 15:44:15 +02:00
|
|
|
config = {
|
|
|
|
boot.loader = {
|
|
|
|
systemd-boot.enable = true;
|
|
|
|
efi.canTouchEfiVariables = true;
|
2023-04-04 21:13:03 +02:00
|
|
|
};
|
|
|
|
|
2023-09-09 15:44:15 +02:00
|
|
|
networking = {
|
|
|
|
# wireless.enable = true; # Enables wireless support via wpa_supplicant.
|
|
|
|
# wireless.userControlled.enable = true;
|
2023-04-04 21:13:03 +02:00
|
|
|
|
2023-09-09 15:44:15 +02:00
|
|
|
# Enable networking
|
|
|
|
networkmanager.enable = true;
|
2023-04-04 21:13:03 +02:00
|
|
|
|
2023-09-09 15:44:15 +02:00
|
|
|
firewall.enable = true;
|
2023-04-04 21:13:03 +02:00
|
|
|
};
|
|
|
|
|
|
|
|
# Enable the OpenSSH daemon.
|
2023-09-09 15:44:15 +02:00
|
|
|
services.openssh = {
|
2023-04-04 21:13:03 +02:00
|
|
|
enable = true;
|
2023-08-27 20:24:57 +02:00
|
|
|
settings = {
|
|
|
|
PermitRootLogin = "no";
|
|
|
|
PasswordAuthentication = false;
|
|
|
|
KbdInteractiveAuthentication = false;
|
|
|
|
};
|
2023-04-04 21:13:03 +02:00
|
|
|
};
|
|
|
|
|
2023-09-09 15:44:15 +02:00
|
|
|
systemd.extraConfig = ''
|
|
|
|
DefaultTimeoutStopSec=12s
|
|
|
|
'';
|
2023-09-01 17:36:49 +02:00
|
|
|
|
2023-09-09 15:44:15 +02:00
|
|
|
programs = {
|
|
|
|
zsh.enable = true;
|
2023-04-04 21:13:03 +02:00
|
|
|
|
2023-09-09 15:44:15 +02:00
|
|
|
git = {
|
|
|
|
enable = true;
|
|
|
|
package = pkgs.gitFull;
|
|
|
|
};
|
2023-08-26 22:37:34 +02:00
|
|
|
};
|
|
|
|
|
2023-09-09 15:44:15 +02:00
|
|
|
environment = {
|
|
|
|
pathsToLink = ["/share/zsh"];
|
2023-08-19 20:13:11 +02:00
|
|
|
|
2023-09-09 15:44:15 +02:00
|
|
|
systemPackages = with pkgs; [
|
|
|
|
lm_sensors
|
|
|
|
tldr
|
|
|
|
ncdu
|
|
|
|
];
|
|
|
|
};
|
2023-08-26 17:29:01 +02:00
|
|
|
};
|
2023-04-04 21:13:03 +02:00
|
|
|
}
|