nixos-config/hosts/vulpecula/configuration.nix

62 lines
1.3 KiB
Nix
Raw Normal View History

2024-09-29 19:41:01 +02:00
# {
# pkgs,
# lib,
# inputs,
# ...
# }: let
# sshKeys = import ../../crypto/ssh-keys.nix;
# in {
# imports = [
# ./hardware-configuration.nix
# ../../common/base.nix
# ];
2024-09-05 20:49:12 +02:00
2024-09-29 19:41:01 +02:00
# networking = {
# hostName = "vulpecula";
2024-09-05 20:49:12 +02:00
2024-09-29 19:41:01 +02:00
# firewall = {
# allowedTCPPorts = [
# # 2342
# # 8080 # ?
# # 9000
# # 9002
# ];
# };
# };
2024-09-05 20:49:12 +02:00
2024-09-29 19:41:01 +02:00
# # nix.settings.trusted-users = ["root" "@wheel"]; # TODO
2024-09-05 20:49:12 +02:00
2024-09-29 19:41:01 +02:00
# users.users.tasia = {
# isNormalUser = true;
# description = "Tasia";
# extraGroups = ["networkmanager" "wheel"];
# initialPassword = "correcthorsebatterystaple";
# openssh.authorizedKeys.keys = [
# sshKeys.tasia.yaseen
# ];
# };
2024-09-05 20:49:12 +02:00
2024-09-29 19:41:01 +02:00
# environment.systemPackages = with pkgs; [
# ];
# # https://nixos.wiki/wiki/FAQ/When_do_I_update_stateVersion
# system.stateVersion = "24.05";
# }
{ ... }: {
imports = [
./hardware-configuration.nix
2024-10-03 11:47:42 +02:00
../../common/base.nix
2024-09-29 19:41:01 +02:00
2024-09-05 20:49:12 +02:00
];
2024-10-03 11:47:42 +02:00
# boot.loader.grub.device = "/dev/sda";
2024-10-03 11:43:27 +02:00
2024-09-29 19:41:01 +02:00
boot.tmp.cleanOnBoot = true;
zramSwap.enable = true;
networking.hostName = "vulpecula";
networking.domain = "";
services.openssh.enable = true;
users.users.root.openssh.authorizedKeys.keys = [''ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAAILLyDLtqUhEQwIsPx0XgQ9OJb2+XxL+2ra4goNJEgwf0 tasia@yaseen'' ];
2024-09-05 20:49:12 +02:00
system.stateVersion = "24.05";
}