oh my zsh

This commit is contained in:
Maxiem Geldhof 2025-10-13 18:48:38 +02:00
parent cc74263a3b
commit 643396a7dd
6 changed files with 52 additions and 13 deletions

View file

@ -20,16 +20,9 @@
agenix,
}:
let
macbook = import ./systems/macbook/macbook.nix {
nix-darwin = nix-darwin;
home-manager = home-manager;
self = self;
agenix = agenix;
};
macbook = import ./systems/macbook/macbook.nix inputs;
selene = import ./systems/selene/system.nix {
agenix = agenix;
};
selene = import ./systems/selene/system.nix inputs;
in
{
# Build darwin flake using:

View file

@ -0,0 +1,9 @@
{
programs.git = {
enable = true;
extraConfig = {
user.name = "Maxiem Geldhof";
user.email = "author@maxiemgeldhof.com";
};
};
}

View file

@ -0,0 +1,28 @@
{
programs.zsh = {
enable = true;
enableCompletion = true;
autosuggestion.enable = true;
syntaxHighlighting.enable = true;
shellAliases = {
ll = "ls -l";
edit = "sudo -e";
update = "sudo nixos-rebuild switch";
};
history.size = 10000;
history.ignoreAllDups = true;
history.path = "$HOME/.zsh_history";
history.ignorePatterns = [
"rm *"
"pkill *"
"cp *"
];
oh-my-zsh = {
enable = true;
theme = "robbyrussell";
};
};
}

View file

@ -1,4 +1,4 @@
{ nix-darwin, home-manager, agenix, self }:
{ nix-darwin, home-manager, agenix, self, ... }:
nix-darwin.lib.darwinSystem {
modules = [
{ system.primaryUser = "maxiemgeldhof"; }

View file

@ -1,12 +1,21 @@
{ pkgs, home-manager, config, ... }:
{
pkgs,
home-manager,
config,
...
}:
let
userconfig = {
home.stateVersion = "25.05";
home.homeDirectory = "/Users/maxiemgeldhof";
programs.home-manager.enable = true;
programs.zsh = (import ../../modules/usermodules/zsh.nix).programs.zsh;
programs.git = (import ../../modules/usermodules/git.nix).programs.git;
};
in {
in
{
home-manager.useGlobalPkgs = true;
home-manager.useUserPackages = true;
home-manager.users.maxiemgeldhof = userconfig;

View file

@ -1,4 +1,4 @@
{ agenix }:
{ agenix, jellyfin-exporter, nixpkgs, ... }:
nixpkgs.lib.nixosSystem {
system = system;
specialArgs = {