nixos-config/hosts/emenel-services/configuration.nix

51 lines
1.2 KiB
Nix
Raw Normal View History

2025-04-13 12:10:45 -04:00
{ nix-config, pkgs, inputs, ... }:{
2025-04-12 11:01:31 -04:00
2025-04-13 12:10:45 -04:00
imports = with nix-config.nixosModules; [
2025-04-12 11:01:31 -04:00
./hardware-configuration.nix
./networking.nix # generated at runtime by nixos-infect
2025-04-12 16:26:18 -04:00
./disko-config.nix
2025-04-13 12:10:45 -04:00
forgejo
2025-04-12 11:01:31 -04:00
];
boot.tmp.cleanOnBoot = true;
2025-04-12 16:26:18 -04:00
boot.loader.grub.enable = true;
2025-04-12 11:01:31 -04:00
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'' ];
2025-04-12 11:05:41 -04:00
environment.systemPackages = with pkgs; [
wget
home-manager
curl
git-lfs
rsync
gnupg
util-linux
];
2025-04-12 11:01:31 -04:00
users.users.emenel = {
openssh.authorizedKeys.keys = [''ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAAIGbzcaEyzlGJkDL8EMcVmrAWRlyYtilTjpIR2VGxkMHo'' ''ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAAIFvtBCUQEi7r6mXdaULEaMMvGH1IWZBX9tXpjbIECar2'' ];
isNormalUser = true;
description = "emenel";
extraGroups = [
"networkmanager"
"network"
"wheel"
"uinput"
];
packages = with pkgs; [
git
];
};
2025-04-12 16:26:18 -04:00
system.stateVersion = "25.05"; # Did you read the comment?
2025-04-12 11:01:31 -04:00
2025-04-12 11:05:41 -04:00
2025-04-12 11:01:31 -04:00
}