added cris to buildbox

This commit is contained in:
2025-12-15 13:46:25 -08:00
parent 77535b4b42
commit fa8abb6561
3 changed files with 101 additions and 1 deletions

View File

@@ -129,6 +129,10 @@
identityFile = "~/.ssh/gitea-buildbox";
user = "gitea";
};
"gitea.miguelmuniz.com" = {
identityFile = "~/.ssh/gitea-buildbox";
user = "gitea";
};
"github.com" = {
identityFile = "~/.ssh/github-buildbox";
user = "git";

View File

@@ -0,0 +1,81 @@
{ config, pkgs, inputs, lib, ... }:
{
imports = [
./commands/commands.nix
./programs/programs.nix
inputs.nixvim.homeModules.nixvim
];
# Home Manager needs a bit of information about you and the paths it should
# manage.
home.username = "cris";
# home.homeDirectory = "/Users/cris";
home.homeDirectory = if pkgs.stdenv.isDarwin
then "/Users/cris" # Path for macOS
else "/home/cris"; # Path for Linux
programs.git = {
enable = true;
userName = lib.mkForce "cris";
userEmail = lib.mkForce "cristiandrosales@gmail.com"; # Update with cris's actual email
lfs.enable = true;
};
# This value determines the Home Manager release that your configuration is
# compatible with. This helps avoid breakage when a new Home Manager release
# introduces backwards incompatible changes.
#
# You should not change this value, even if you update Home Manager. If you do
# want to update the value, then make sure to first check the Home Manager
# release notes.
home.stateVersion = "25.05"; # Please read the comment before changing.
nixpkgs.config.allowUnfree = true;
# The home.packages option allows you to install Nix packages into your
# environment.
home.packages = with pkgs; [
];
# Home Manager is pretty good at managing dotfiles. The primary way to manage
# plain files is through 'home.file'.
home.file = {
# # Building this configuration will create a copy of 'dotfiles/screenrc' in
# # the Nix store. Activating the configuration will then make '~/.screenrc' a
# # symlink to the Nix store copy.
# ".screenrc".source = dotfiles/screenrc;
# # You can also set the file content immediately.
# ".gradle/gradle.properties".text = ''
# org.gradle.console=verbose
# org.gradle.daemon.idletimeout=3600000
# '';
};
# Home Manager can also manage your environment variables through
# 'home.sessionVariables'. These will be explicitly sourced when using a
# shell provided by Home Manager. If you don't want to manage your shell
# through Home Manager then you have to manually source 'hm-session-vars.sh'
# located at either
#
# ~/.nix-profile/etc/profile.d/hm-session-vars.sh
#
# or
#
# ~/.local/state/nix/profiles/profile/etc/profile.d/hm-session-vars.sh
#
# or
#
# /etc/profiles/per-user/cris/etc/profile.d/hm-session-vars.sh
#
home.sessionVariables = {
EDITOR = "nvim";
};
# Let Home Manager install and manage itself.
programs.home-manager.enable = true;
}

View File

@@ -118,6 +118,16 @@
];
};
users.users.cris = {
isNormalUser = true;
description = "cris";
extraGroups = [ "networkmanager" "wheel" "docker" ];
shell = pkgs.zsh;
packages = with pkgs; [
# Add any specific packages for cris if needed
];
};
# Install firefox.
programs.firefox.enable = true;
@@ -139,7 +149,7 @@
ports = [ 22 ];
settings = {
PasswordAuthentication = true;
AllowUsers = [ "rogueking" ];
AllowUsers = [ "rogueking" "cris"];
UseDns = true;
X11Forwarding = false;
PermitRootLogin = "no";
@@ -151,6 +161,10 @@
"ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAAINXqriPZVIuduc/J7GS1mD171LL0gIbgEjlImsxedWVX"
];
users.users."cris".openssh.authorizedKeys.keys = [
"ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAAIIlF9KmjGDL1/KX2YDAZe4E5rd0qMtrirEbFnE3CKmS+"
];
nixpkgs.config.permittedInsecurePackages = [
"qtwebengine-5.15.19"
"python3.12-ecdsa-0.19.1"
@@ -200,6 +214,7 @@
};
users = {
"rogueking" = import ./../../home-manager/home.nix;
"cris" = import ./../../home-manager/cris-home.nix;
};
backupFileExtension = "backup";
};