44 lines
942 B
Nix
44 lines
942 B
Nix
{
|
||
config,
|
||
pkgs,
|
||
...
|
||
}: {
|
||
nix.settings.experimental-features = ["nix-command" "flakes"];
|
||
|
||
# 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"];
|
||
shell = pkgs.fish;
|
||
openssh.authorizedKeys.keys = [
|
||
];
|
||
};
|
||
}
|