mirror of
https://github.com/Nickiel12/nicks-nix-config.git
synced 2024-11-22 12:49:32 -08:00
fixed user not being passed around
This commit is contained in:
parent
4a4ba6d04a
commit
be437725c7
3 changed files with 4 additions and 37 deletions
|
@ -27,7 +27,7 @@
|
|||
|
||||
NicksNixLaptop = lib.nixosSystem {
|
||||
inherit system;
|
||||
specialArgs = inputs;
|
||||
specialArgs = { inherit user; };
|
||||
|
||||
modules = [
|
||||
{
|
||||
|
|
|
@ -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
|
||||
];
|
||||
};
|
||||
};
|
||||
}
|
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue