1
Fork 0
mirror of https://github.com/thegeneralist01/config.git synced 2026-03-07 10:59:55 +01:00

chore: add a new host and make a few adjustments

This commit is contained in:
TheGeneralist 2025-06-23 09:09:26 +02:00
parent d084d841ce
commit 688acfe889
Signed by: thegeneralist01
SSH key fingerprint: SHA256:pp9qddbCNmVNoSjevdvQvM5z0DHN7LTa8qBMbcMq/R4
16 changed files with 195 additions and 65 deletions

View file

@ -5,17 +5,14 @@
{ self, config, pkgs, lib, inputs, ... }:
{
imports = [ ./hardware-configuration.nix ./jellyfin.nix ];
imports = [ ./hardware-configuration.nix ];
users.knownUsers = [
"central"
];
users.users.central = {
name = "central";
home = "/Users/central";
users.users.thegeneralist = {
isNormalUser = true;
description = "thegeneralist";
extraGroups = [ "wheel" "audio" "video" "input" "scanner" ];
shell = pkgs.zsh;
uid = 502;
home = "/home/thegeneralist";
openssh.authorizedKeys.keys = let
inherit (import ../../keys.nix) thegeneralist;
in [ thegeneralist ];
@ -23,11 +20,34 @@
home-manager = {
backupFileExtension = "home.bak";
users.central.home = {
stateVersion = "25.11";
homeDirectory = "/Users/central";
extraSpecialArgs = { inherit inputs; };
users = {
thegeneralist = import (self + /modules/home);
};
};
system.stateVersion = 6;
age.secrets.hostkey.file = ./hostkey.age;
services.openssh.hostKeys = [{
type = "ed25519";
path = config.age.secrets.hostkey.path;
}];
# Some programs
services.libinput.enable = true;
programs.firefox.enable = true;
programs.zsh.enable = true;
# Set your time zone.
time.timeZone = "Europe/Berlin";
# Select internationalisation properties.
i18n.defaultLocale = "en_US.UTF-8";
# console = {
# font = "Lat2-Terminus16";
# keyMap = "us";
# useXkbConfig = true; # use xkb.options in tty.
# };
system.stateVersion = "24.11";
}