refactor: move host configs to hosts/
This commit is contained in:
parent
73ba13f6ab
commit
cb0499cb09
4 changed files with 52 additions and 52 deletions
hosts
42
hosts/work-pc.nix
Normal file
42
hosts/work-pc.nix
Normal 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";
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue