mirror of
https://github.com/Gerg-L/nixos.git
synced 2025-12-10 00:43:56 -05:00
cleaned up a whole bunch
This commit is contained in:
parent
2f04dc0e23
commit
a959cf3e97
17 changed files with 199 additions and 220 deletions
|
|
@ -1,24 +1,49 @@
|
|||
{lib, ...}: {
|
||||
{
|
||||
lib,
|
||||
config,
|
||||
pkgs,
|
||||
...
|
||||
}: {
|
||||
options = {
|
||||
dummyvalue = lib.mkOption {
|
||||
default = {};
|
||||
type = lib.configType;
|
||||
};
|
||||
};
|
||||
config = {
|
||||
#enable ssh
|
||||
programs.mtr.enable = true; #ping and traceroute
|
||||
services.openssh = {
|
||||
enable = true;
|
||||
hostKeys = lib.mkForce [];
|
||||
settings = {
|
||||
PermitRootLogin = "yes";
|
||||
PasswordAuthentication = false;
|
||||
KbdInteractiveAuthentication = false;
|
||||
};
|
||||
nixpkgs.allowedUnfree = lib.mkOption {
|
||||
type = lib.types.listOf lib.types.string;
|
||||
default = [];
|
||||
};
|
||||
i18n.defaultLocale = "en_US.UTF-8";
|
||||
#time settings
|
||||
time.timeZone = "America/New_York";
|
||||
};
|
||||
|
||||
config = lib.mkMerge [
|
||||
(lib.mkIf (config.nixpkgs.allowedUnfree != []) {
|
||||
nixpkgs.config.allowUnfreePredicate = pkg: builtins.elem (lib.getName pkg) config.nixpkgs.allowedUnfree;
|
||||
})
|
||||
{
|
||||
environment.defaultPackages = lib.mkForce [
|
||||
pkgs.efibootmgr #efi editor
|
||||
pkgs.pciutils #lspci
|
||||
pkgs.alsa-utils #volume control
|
||||
pkgs.xclip #commandline clipboard access
|
||||
pkgs.bottom #view tasks
|
||||
pkgs.nix-tree #view packages
|
||||
pkgs.nix-output-monitor #nom nom nom nom];
|
||||
];
|
||||
|
||||
#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";
|
||||
}
|
||||
];
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue