mirror of
https://github.com/srid/nixos-config.git
synced 2026-01-08 09:17:23 +08:00
Add 2nd user (#24)
* add new user * need to be trusted * parametrize git module * allow all users (in that group) to use nix
This commit is contained in:
parent
31c8ae6508
commit
ab6609319a
4 changed files with 27 additions and 5 deletions
23
flake.nix
23
flake.nix
|
|
@ -54,10 +54,13 @@
|
|||
home-manager.useGlobalPkgs = true;
|
||||
home-manager.useUserPackages = true;
|
||||
home-manager.extraSpecialArgs = { inherit system inputs; };
|
||||
home-manager.users.${userName} = {
|
||||
home-manager.users.${userName} = { pkgs, ... }: {
|
||||
imports = [
|
||||
./home/tmux.nix
|
||||
./home/git.nix
|
||||
(import ./home/git.nix {
|
||||
userName = "Sridhar Ratnakumar";
|
||||
userEmail = "srid@srid.ca";
|
||||
})
|
||||
./home/neovim.nix
|
||||
./home/starship.nix
|
||||
./home/terminal.nix
|
||||
|
|
@ -70,6 +73,22 @@
|
|||
} // (import ./home/shellcommon.nix { inherit pkgs; });
|
||||
home.stateVersion = "22.11";
|
||||
};
|
||||
home-manager.users."uday" = {
|
||||
imports = [
|
||||
./home/tmux.nix
|
||||
(import ./home/git.nix {
|
||||
userName = "Uday Kiran";
|
||||
userEmail = "udaycruise2903@gmail.com";
|
||||
})
|
||||
./home/neovim.nix
|
||||
./home/starship.nix
|
||||
./home/terminal.nix
|
||||
./home/direnv.nix
|
||||
./home/vscode-server.nix
|
||||
];
|
||||
programs.bash.enable = true;
|
||||
home.stateVersion = "22.11";
|
||||
};
|
||||
}
|
||||
];
|
||||
mkLinuxSystem = extraModules: nixpkgs.lib.nixosSystem {
|
||||
|
|
|
|||
|
|
@ -1,3 +1,4 @@
|
|||
{ userName, userEmail }:
|
||||
{ pkgs, ... }:
|
||||
{
|
||||
home.packages = [ pkgs.git-lfs ];
|
||||
|
|
@ -5,8 +6,7 @@
|
|||
programs.git = {
|
||||
package = pkgs.gitAndTools.gitFull;
|
||||
enable = true;
|
||||
userName = "Sridhar Ratnakumar";
|
||||
userEmail = "srid@srid.ca";
|
||||
inherit userName userEmail;
|
||||
aliases = {
|
||||
co = "checkout";
|
||||
ci = "commit";
|
||||
|
|
|
|||
|
|
@ -21,6 +21,6 @@
|
|||
];
|
||||
};
|
||||
};
|
||||
nix.settings.allowed-users = [ "root" "srid" ];
|
||||
nix.settings.allowed-users = [ "root" "@users" ];
|
||||
nix.settings.trusted-users = [ "root" "srid" ];
|
||||
}
|
||||
|
|
|
|||
|
|
@ -118,6 +118,9 @@
|
|||
isNormalUser = true;
|
||||
extraGroups = [ "wheel" "networkmanager" ];
|
||||
};
|
||||
users.users.uday = {
|
||||
isNormalUser = true;
|
||||
};
|
||||
security.sudo.wheelNeedsPassword = false;
|
||||
|
||||
system.stateVersion = "20.03";
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue