init commit so flakes work
This commit is contained in:
commit
076814d4b9
6 changed files with 106 additions and 0 deletions
12
.modules/base/hardware.nix
Normal file
12
.modules/base/hardware.nix
Normal file
|
|
@ -0,0 +1,12 @@
|
|||
{config, lib, pkgs, modulesPath, ... }:
|
||||
|
||||
{
|
||||
imports =
|
||||
[ (modulesPath + "/installer/scan/not-detected.nix")
|
||||
];
|
||||
boot.initrd.availableKernelModules = [ "uhci_hcd" "ehci_pci" "ahci" "usbhid" "sd_mod" "sdhci_pci" ];
|
||||
boot.initrd.kernelModules = [ "dm-snapshot" ];
|
||||
boot.kernelModules = [ "kvm-intel" "wl" ];
|
||||
# boot.extraModulePackages = [ config.boot.kernelPackages.broadcom_sta ];
|
||||
hardware.cpu.intel.updateMicrocode = lib.mkDefault config.hardware.enableRedistributableFirmware;
|
||||
}
|
||||
8
.modules/services/docker.nix
Normal file
8
.modules/services/docker.nix
Normal file
|
|
@ -0,0 +1,8 @@
|
|||
_: { config, pkgs, lib, ... }:
|
||||
{
|
||||
virtualisation.docker = {
|
||||
enable = true;
|
||||
liveRestore = false;
|
||||
autoPrune.enable = true;
|
||||
};
|
||||
}
|
||||
17
.modules/services/openssh.nix
Normal file
17
.modules/services/openssh.nix
Normal file
|
|
@ -0,0 +1,17 @@
|
|||
_: { config, pkgs, lib, ... }:
|
||||
|
||||
{
|
||||
services.openssh = lib.mkDefault{
|
||||
enable = true;
|
||||
openFirewall = true;
|
||||
startWhenNeeded = true;
|
||||
kexAlgorithms = [ "curve25519-sha256@libssh.org" ];
|
||||
passwordAuthentication = false;
|
||||
kbdInteractiveAuthentication = false;
|
||||
permitRootLogin = "no";
|
||||
};
|
||||
security.pam = mkDefault{
|
||||
enableSSHAgentAuth = true;
|
||||
services.sudo.sshAgentAuth = true;
|
||||
};
|
||||
}
|
||||
12
.modules/users/arouzing.nix
Normal file
12
.modules/users/arouzing.nix
Normal file
|
|
@ -0,0 +1,12 @@
|
|||
_: { config, pkgs, lib, ... }:
|
||||
{
|
||||
users.users.arouzing = {
|
||||
isNormalUser = true;
|
||||
initialPassword = "password~!@~";
|
||||
openssh.authorizedKeys.keys = [
|
||||
"ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAAIJAGm66rJsr8vjRCYDkH4lEPncPq27o6BHzpmRmkzOiM"
|
||||
];
|
||||
description = "admin";
|
||||
extraGroups = [ "networkmanager" "wheel" "docker" ];
|
||||
};
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue