Add zsh, add home-manager

This commit is contained in:
Alexander Derevianko
2025-07-26 12:16:27 +02:00
parent 472ef2d0d0
commit baf2f6438f
8 changed files with 272 additions and 11 deletions
+45 -10
View File
@@ -1,6 +1,8 @@
{ config, pkgs, ... }:
{ config, pkgs, extraHomeModules, inputs, ... }:
{
let
username = "susano";
in {
imports =
[ # Include the results of the hardware scan.
./hardware-configuration.nix
@@ -9,10 +11,9 @@
# Bootloader.
boot.loader.grub.enable = true;
# boot.loader.grub.device = "/dev/sda";
boot.loader.grub.useOSProber = true;
networking.hostName = "susano";
networking.hostName = username;
networking.networkmanager.enable = true;
# Set your time zone.
@@ -35,23 +36,57 @@
security.rtkit.enable = true;
# Define a user account. Don't forget to set a password with passwd.
users.users.susano = {
users.users.${username} = {
isNormalUser = true;
description = "susano";
description = "NixOS Proxmox Homelab";
initialPassword = "test";
extraGroups = [ "networkmanager" "wheel" ];
packages = with pkgs; [
];
openssh.authorizedKeys.keys = [
"ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAAIBcGhVpjmWEw1GEw0y/ysJPa2v3+u/Rt/iES/Se2huH2 alexander0derevianko@gmail.com"
];
shell = pkgs.zsh;
};
programs.firefox.enable = true;
environment.systemPackages = with pkgs; [
vim
wget
ripgrep
];
services.openssh = {
enable = true;
settings = {
# Opinionated: forbid root login through SSH.
PermitRootLogin = "no";
# Opinionated: use keys only.
# Remove if you want to SSH using passwords
PasswordAuthentication = false;
};
};
programs = {
zsh.enable = true;
};
###
# Home Manger configuration
###
home-manager = {
useGlobalPkgs = true;
useUserPackages = true;
backupFileExtension = "backup";
extraSpecialArgs = { inherit inputs; };
users."${username}" = {
imports = [
./home.nix
] ++ extraHomeModules;
};
};
# DO NOT CHANGE AT ANY POINT!
system.stateVersion = "25.05";
}