mirror of
https://github.com/Gerg-L/nixos.git
synced 2025-12-10 00:43:56 -05:00
48 lines
1.1 KiB
Nix
48 lines
1.1 KiB
Nix
_: {
|
|
lib,
|
|
config,
|
|
pkgs,
|
|
...
|
|
}: {
|
|
options = {
|
|
dummyvalue = lib.mkOption {
|
|
default = {};
|
|
};
|
|
nixpkgs.allowedUnfree = lib.mkOption {
|
|
type = lib.types.listOf lib.types.string;
|
|
default = [];
|
|
};
|
|
};
|
|
|
|
config = {
|
|
nixpkgs.config.allowUnfreePredicate = pkg: builtins.elem (lib.getName pkg) config.nixpkgs.allowedUnfree;
|
|
|
|
environment.defaultPackages = lib.mkForce (builtins.attrValues {
|
|
inherit
|
|
(pkgs)
|
|
alsa-utils #volume control
|
|
bottom #view tasks
|
|
efibootmgr #efi editor
|
|
nix-output-monitor #nom nom nom nom;
|
|
nix-tree #view packages
|
|
pciutils #lspci
|
|
xclip #commandline clipboard access
|
|
;
|
|
});
|
|
|
|
#enable ssh
|
|
programs.mtr.enable = true; #ping and traceroute
|
|
services.openssh = {
|
|
enable = true;
|
|
hostKeys = lib.mkForce [];
|
|
settings = {
|
|
PermitRootLogin = "yes";
|
|
PasswordAuthentication = false;
|
|
KbdInteractiveAuthentication = false;
|
|
};
|
|
};
|
|
i18n.defaultLocale = "en_US.UTF-8";
|
|
#time settings
|
|
time.timeZone = "America/New_York";
|
|
};
|
|
}
|