starting setup for new services host
This commit is contained in:
parent
892bac84aa
commit
d3bb3465c8
6 changed files with 166 additions and 9 deletions
49
hosts/emenel-services/configuration.nix
Normal file
49
hosts/emenel-services/configuration.nix
Normal file
|
@ -0,0 +1,49 @@
|
|||
{ config, lib, pkgs, ... }:{
|
||||
|
||||
imports = [
|
||||
./hardware-configuration.nix
|
||||
./networking.nix # generated at runtime by nixos-infect
|
||||
|
||||
];
|
||||
|
||||
boot.tmp.cleanOnBoot = true;
|
||||
zramSwap.enable = true;
|
||||
networking.hostName = "services-nixos";
|
||||
networking.domain = "";
|
||||
services.openssh.enable = true;
|
||||
users.users.root.openssh.authorizedKeys.keys = [''ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAAIGbzcaEyzlGJkDL8EMcVmrAWRlyYtilTjpIR2VGxkMHo'' ''ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAAIFvtBCUQEi7r6mXdaULEaMMvGH1IWZBX9tXpjbIECar2'' ];
|
||||
|
||||
users.users.emenel = {
|
||||
openssh.authorizedKeys.keys = [''ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAAIGbzcaEyzlGJkDL8EMcVmrAWRlyYtilTjpIR2VGxkMHo'' ''ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAAIFvtBCUQEi7r6mXdaULEaMMvGH1IWZBX9tXpjbIECar2'' ];
|
||||
|
||||
isNormalUser = true;
|
||||
description = "emenel";
|
||||
extraGroups = [
|
||||
"networkmanager"
|
||||
"network"
|
||||
"wheel"
|
||||
"uinput"
|
||||
"uucp"
|
||||
"dialout"
|
||||
"input"
|
||||
"audio"
|
||||
"video"
|
||||
"libvirtd"
|
||||
"nvidia"
|
||||
"cups"
|
||||
"openrazer"
|
||||
"plugdev"
|
||||
"i2c-dev"
|
||||
"scanner"
|
||||
"lp"
|
||||
];
|
||||
packages = with pkgs; [
|
||||
git
|
||||
];
|
||||
};
|
||||
|
||||
|
||||
|
||||
system.stateVersion = "23.11";
|
||||
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue