so much cleanup

This commit is contained in:
mjallen18
2025-05-28 21:06:30 -05:00
parent 2f96b0ae7c
commit dd18dcadb9
16 changed files with 258 additions and 688 deletions

View File

@@ -36,6 +36,8 @@ in
openFirewall = true;
};
programs.gamemode.enable = true;
# Hardware configs
hardware = {
# Xbox controllers

54
share/home/defaults.nix Normal file
View File

@@ -0,0 +1,54 @@
{ config, lib, pkgs, ... }:
{
home = {
enableNixpkgsReleaseCheck = lib.mkDefault false;
homeDirectory = lib.mkDefault "/home/${config.home.username}";
packages = with pkgs; [
age
chromium
clinfo
coolercontrol.coolercontrol-gui
cpufetch
deadnix
direnv
firefox
gamescope
gamescope-wsi
goverlay
gparted
lm_sensors
mission-center
nano
nixfmt-rfc-style
pciutils
protonup
rsync
smartmontools
sops
tailscale
tree
usbutils
vesktop
vim
vulkan-tools
vmware-horizon-client
wget
];
stateVersion = lib.mkDefault "23.11";
};
programs = {
btop.enable = lib.mkDefault true;
fastfetch.enable = lib.mkDefault true;
home-manager.enable = lib.mkDefault true;
java.enable = lib.mkDefault true;
mangohud.enable = lib.mkDefault true;
password-store.enable = true;
};
services = {
nextcloud-client.enable = lib.mkDefault true;
pass-secret-service.enable = lib.mkDefault true;
};
}

View File

@@ -1,52 +1,20 @@
{ ... }:
let
shellAliases = {
ll = "ls -alh";
update-boot = "nixos-rebuild boot --max-jobs 10";
update-switch = "nixos-rebuild switch --max-jobs 10";
update-flake = "nix flake update /etc/nixos";
ducks = "du -cksh * | sort -hr | head -n 15";
};
gitAliases = {
co = "checkout";
ci = "commit";
cia = "commit --amend";
s = "status";
st = "status";
b = "branch";
p = "pull --rebase";
pu = "push";
};
in
{
imports = [
../home/defaults.nix
../home/git.nix
../home/shell.nix
];
home.username = "root";
home.homeDirectory = "/root";
home.stateVersion = "23.11";
programs = {
home-manager.enable = true;
zsh = {
enable = true;
enableCompletion = true;
autosuggestion.enable = true;
syntaxHighlighting.enable = true;
shellAliases = shellAliases;
oh-my-zsh = {
enable = true;
plugins = [ "git" ];
theme = "fishy";
};
};
git = {
enable = true;
userName = "mjallen18";
userEmail = "matt.l.jallen@gmail.com";
aliases = gitAliases;
};
zsh.shellAliases = shellAliases;
};
}