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 {
inherit system;
specialArgs = inputs;
specialArgs = { inherit user; };
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" ];}
);
user = "nicholix";
local_user = "nicholix";
in
{
imports = [
@ -31,8 +31,8 @@ in
home = {
# Home Manager needs a bit of information about you and the
# paths it should manage.
username = user;
homeDirectory = "/home/${user}";
username = local_user;
homeDirectory = "/home/${local_user}";
# This value determines the Home Manager release that your
# configuration is compatible with. This helps avoid breakage