Split configuration into reusable modules
This commit is contained in:
@@ -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
|
||||
'';
|
||||
|
||||
8
modules/home/linux-headless.nix
Normal file
8
modules/home/linux-headless.nix
Normal file
@@ -0,0 +1,8 @@
|
||||
{ primaryUser, ... }:
|
||||
{
|
||||
imports = [
|
||||
./common.nix
|
||||
];
|
||||
|
||||
home.homeDirectory = "/home/${primaryUser}";
|
||||
}
|
||||
16
modules/home/mac-portable.nix
Normal file
16
modules/home/mac-portable.nix
Normal 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;
|
||||
}
|
||||
Reference in New Issue
Block a user