Split configuration into reusable modules

This commit is contained in:
2026-03-29 11:50:03 +02:00
parent 5a8f0aa4df
commit 58fb358955
7 changed files with 40 additions and 25 deletions

View File

@@ -1,5 +1,6 @@
{ pkgs, ... }:
{ pkgs, primaryUser, ... }:
{
home.username = primaryUser;
home.packages = with pkgs; [
stow
wget
@@ -20,7 +21,7 @@
. ~/dotfiles/migrated/.zshrc
else
# If no custom override is available, use the one bundled with flake.
. ${../migrated/.zshrc}
. ${../../migrated/.zshrc}
fi
'';

View File

@@ -0,0 +1,8 @@
{ primaryUser, ... }:
{
imports = [
./common.nix
];
home.homeDirectory = "/home/${primaryUser}";
}

View File

@@ -0,0 +1,16 @@
{ pkgs, primaryUser, ... }:
{
imports = [
./common.nix
];
home.homeDirectory = "/Users/${primaryUser}";
home.packages = with pkgs; [
secretive
vlc-bin
];
nixpkgs.config.allowUnfree = true;
programs.vscode.enable = true;
}