deduplicated host configs, defined more things in common.nix files.

This commit is contained in:
Gabe Venberg 2024-06-05 13:39:25 -05:00
parent fada583de6
commit 04783f1580
6 changed files with 24 additions and 70 deletions

View file

@ -22,16 +22,11 @@ inputs.nixos-generators.nixosGenerate {
imports = [(modulesPath + "/virtualisation/proxmox-lxc.nix")];
proxmoxLXC.manageHostName = false;
host.user = "gabe";
host.fullName = "Gabe Venberg";
users.users.root.password="nixos";
programs.zsh.enable = true;
environment.shells = with pkgs; [zsh];
users.users.root.password = "nixos";
users.users.${config.host.user} = {
isNormalUser = true;
description = "Gabe Venberg";
shell = pkgs.zsh;
extraGroups = ["wheel"];
password="nixos";
password = "nixos";
};
home-manager.users.${config.host.user} = {
@ -43,7 +38,7 @@ inputs.nixos-generators.nixosGenerate {
user = {
git = {
profile = {
name = "Gabe Venberg";
name = config.host.fullName;
email = "gabevenberg@gmail.com";
};
workProfile.enable = false;

View file

@ -22,16 +22,11 @@ inputs.nixos-generators.nixosGenerate {
}: {
imports = [(modulesPath + "/profiles/qemu-guest.nix")];
host.user = "gabe";
host.fullName = "Gabe Venberg";
users.users.root.password="nixos";
programs.zsh.enable = true;
environment.shells = with pkgs; [zsh];
users.users.root.password = "nixos";
users.users.${config.host.user} = {
isNormalUser = true;
description = "Gabe Venberg";
shell = pkgs.zsh;
extraGroups = ["wheel"];
password="nixos";
password = "nixos";
};
home-manager.users.${config.host.user} = {
@ -43,7 +38,7 @@ inputs.nixos-generators.nixosGenerate {
user = {
git = {
profile = {
name = "Gabe Venberg";
name = config.host.fullName;
email = "gabevenberg@gmail.com";
};
workProfile.enable = false;