summaryrefslogtreecommitdiff
path: root/user-profiles
diff options
context:
space:
mode:
Diffstat (limited to 'user-profiles')
-rw-r--r--user-profiles/core.nix5
-rw-r--r--user-profiles/zsh/default.nix4
2 files changed, 6 insertions, 3 deletions
diff --git a/user-profiles/core.nix b/user-profiles/core.nix
index 57fb7628..7034f17e 100644
--- a/user-profiles/core.nix
+++ b/user-profiles/core.nix
@@ -1,4 +1,4 @@
1{ flake, flakeInputs, path, userName, config, lib, utils, ... }: 1{ flake, flakeInputs, sources, path, userName, config, lib, utils, ... }:
2 2
3with lib; 3with lib;
4 4
@@ -6,6 +6,9 @@ with lib;
6 config = { 6 config = {
7 users.users.${userName} = {}; # Just make sure the user is created 7 users.users.${userName} = {}; # Just make sure the user is created
8 home-manager.users.${userName} = let sysConfig = config; in { config, ... }: { 8 home-manager.users.${userName} = let sysConfig = config; in { config, ... }: {
9 config._module.args = {
10 inherit sysConfig flake flakeInputs sources;
11 };
9 config.nix.settings = { 12 config.nix.settings = {
10 inherit (sysConfig.nix.settings) use-xdg-base-directories; 13 inherit (sysConfig.nix.settings) use-xdg-base-directories;
11 }; 14 };
diff --git a/user-profiles/zsh/default.nix b/user-profiles/zsh/default.nix
index 7821d99a..a89da267 100644
--- a/user-profiles/zsh/default.nix
+++ b/user-profiles/zsh/default.nix
@@ -1,11 +1,11 @@
1{ userName, pkgs, customUtils, lib, config, ... }: 1{ userName, pkgs, customUtils, lib, ... }:
2{ 2{
3 config = { 3 config = {
4 nixpkgs.externalConfig.allowUnfreePackages = [ 4 nixpkgs.externalConfig.allowUnfreePackages = [
5 "zsh-abbr" 5 "zsh-abbr"
6 ]; 6 ];
7 7
8 home-manager.users.${userName} = let sysConfig = config; in { config, ... }: { 8 home-manager.users.${userName} = { sysConfig, config, ... }: {
9 config = { 9 config = {
10 programs.zsh = { 10 programs.zsh = {
11 dotDir = "${config.xdg.configHome}/zsh"; 11 dotDir = "${config.xdg.configHome}/zsh";