Files
nixos-config/modules/system.nix
2024-05-06 14:18:15 -03:00

57 lines
1.2 KiB
Nix
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

{
config,
pkgs,
...
}: {
nix.settings = {
experimental-features = ["nix-command" "flakes"];
substituters = [
"https://nix-community.cachix.org"
];
trusted-public-keys = [
"nix-community.cachix.org-1:mB9FSh9qf2dCimDSUo8Zy7bkq5CX+/rkCWyvRCYg3Fs="
];
trusted-users = [
"root"
"panotaka"
];
};
# Enable CUPS to print documents.
services.printing.enable = true;
# Enable the OpenSSH daemon.
services.openssh = {
enable = true;
settings = {
X11Forwarding = true;
PermitRootLogin = "no"; # disable root login
PasswordAuthentication = false; # disable password login
};
openFirewall = true;
};
# Allow unfree packages
nixpkgs.config.allowUnfree = true;
# Add system packages
environment.systemPackages = with pkgs; [
];
services.fwupd.enable = true;
# Enable fish shell
programs.fish.enable = true;
# Define a user account. Don't forget to set a password with passwd.
users.users.panotaka = {
isNormalUser = true;
description = "panotaka";
extraGroups = ["networkmanager" "wheel" "libvirtd"];
initialPassword = "panotaka";
shell = pkgs.fish;
openssh.authorizedKeys.keys = [
];
};
}