fixed user not being passed around

This commit is contained in:
Nicholas Young 2023-02-16 12:14:10 -08:00
parent 4a4ba6d04a
commit be437725c7
3 changed files with 4 additions and 37 deletions

View file

@ -27,7 +27,7 @@
NicksNixLaptop = lib.nixosSystem { NicksNixLaptop = lib.nixosSystem {
inherit system; inherit system;
specialArgs = inputs; specialArgs = { inherit user; };
modules = [ modules = [
{ {

View file

@ -1,33 +0,0 @@
{ lib, inputs, nixpkgs, home-manager, user, kmonad, ... }:
{
home-manager.nixosModules.home-manager = {
useGlobalPkgs = true;
useUserPackages = true;
extraSpecialArgs = { inherit user; };
users.${user} = {
imports = [
../../users/${user}.nix
../../modules/emacs.nix
../../../modules/git.nix
../../modules/fusuma.nix
../../modules/vim.nix
../../modules/wezterm.nix
../../modules/xdg.nix
../../modules/zsh.nix
];
};
users.nicholix = {
imports = [
../../users/nicholix.nix
../../modules/emacs.nix
../../modules/git.nix
../../modules/fusuma.nix
../../modules/vim.nix
../../modules/wezterm.nix
../../modules/xdg.nix
../../modules/zsh.nix
];
};
};
}

View file

@ -9,7 +9,7 @@ let
extensions = [ "rust-src" "rust-analysis" ];} extensions = [ "rust-src" "rust-analysis" ];}
); );
user = "nicholix"; local_user = "nicholix";
in in
{ {
imports = [ imports = [
@ -31,8 +31,8 @@ in
home = { home = {
# Home Manager needs a bit of information about you and the # Home Manager needs a bit of information about you and the
# paths it should manage. # paths it should manage.
username = user; username = local_user;
homeDirectory = "/home/${user}"; homeDirectory = "/home/${local_user}";
# This value determines the Home Manager release that your # This value determines the Home Manager release that your
# configuration is compatible with. This helps avoid breakage # configuration is compatible with. This helps avoid breakage