refactor: move host configs to hosts/

This commit is contained in:
Felix Schröter 2023-08-13 00:28:29 +02:00
parent 73ba13f6ab
commit cb0499cb09
Signed by: felschr
GPG key ID: 671E39E6744C807D
4 changed files with 52 additions and 52 deletions

42
hosts/work-pc.nix Normal file
View file

@ -0,0 +1,42 @@
{ ... }:
{
imports = [
../hardware/base.nix
../hardware/gpu-intel.nix
../hardware/bluetooth.nix
../system/desktop.nix
../system/printing/home.nix
../desktop
../virtualisation/podman.nix
];
# replace with regenerated hardware-configuration.nix
boot.initrd.luks.devices = {
enc = {
device = "/dev/disk/by-partlabel/nixos";
allowDiscards = true;
};
};
nixpkgs.config.allowUnfree = true;
hardware.logitech.wireless.enable = true;
hardware.logitech.wireless.enableGraphical = true;
programs.adb.enable = true;
programs.zsh.enable = true;
services.openssh = {
enable = true;
settings = {
KbdInteractiveAuthentication = false;
PasswordAuthentication = false;
PermitRootLogin = "no";
};
};
# only change this when specified in release notes
system.stateVersion = "22.05";
}