Skip to content

Commit

Permalink
Make the shell options a bit easier to configure
Browse files Browse the repository at this point in the history
  • Loading branch information
arunoruto committed Nov 2, 2024
1 parent 807eba6 commit 87d244b
Showing 1 changed file with 10 additions and 5 deletions.
15 changes: 10 additions & 5 deletions modules/nixos/user.nix
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,9 @@
image,
...
}:
let
shell = config.home-manager.users.${username}.shell;
in
{
sops.secrets."passwords/${username}".neededForUsers = true;

Expand All @@ -17,10 +20,7 @@
isNormalUser = true;
# hashedPasswordFile = config.sops.secrets."passwords/${username}".path;
# shell = pkgs.${config.home-manager.users.${username}.shell};
shell =
config.home-manager.users.${username}.programs.${
config.home-manager.users.${username}.shell
}.package;
shell = config.home-manager.users.${username}.programs.${shell}.package;
description = "Mirza";
extraGroups = [
"dialout"
Expand All @@ -41,5 +41,10 @@

programs.zsh.enable = true;

environment.sessionVariables.FLAKE = "/home/${username}/.config/flake";
environment = {
sessionVariables.FLAKE = "/home/${username}/.config/flake";
shells = [
config.users.users.${username}.shell
];
};
}

0 comments on commit 87d244b

Please sign in to comment.