Skip to content

Commit

Permalink
adding a new user: shakhzod
Browse files Browse the repository at this point in the history
  • Loading branch information
orzklv committed Jul 15, 2024
1 parent 76cbc77 commit c40223c
Show file tree
Hide file tree
Showing 4 changed files with 76 additions and 0 deletions.
43 changes: 43 additions & 0 deletions home/shakhzod.nix
Original file line number Diff line number Diff line change
@@ -0,0 +1,43 @@
{
inputs,
lib,
pkgs,
config,
outputs,
packages,
self,
...
}: {
imports = [
outputs.homeManagerModules.zsh
outputs.homeManagerModules.neovim
outputs.homeManagerModules.nixpkgs
outputs.homeManagerModules.topgrade
outputs.homeManagerModules.packages
];

# This is required information for home-manager to do its job
home = {
stateVersion = "24.05";
username = "shakhzod";
homeDirectory = "/home/shakhzod";

# Tell it to map everything in the `config` directory in this
# repository to the `.config` in my home-manager directory
file.".config" = {
source = ../.github/configs/config;
recursive = true;
};

file.".local/share" = {
source = ../.github/configs/share;
recursive = true;
};

# Don't check if home manager is same as nixpkgs
enableNixpkgsReleaseCheck = false;
};

# Let's enable home-manager
programs.home-manager.enable = true;
}
1 change: 1 addition & 0 deletions modules/nixos/users/default.nix
Original file line number Diff line number Diff line change
Expand Up @@ -2,5 +2,6 @@
{
# List your users here
sakhib = import ./sakhib.nix;
shakhzod = import ./shakhzod.nix;
muzaffar = import ./muzaffar.nix;
}
31 changes: 31 additions & 0 deletions modules/nixos/users/shakhzod.nix
Original file line number Diff line number Diff line change
@@ -0,0 +1,31 @@
{
pkgs,
inputs,
outputs,
lib,
config,
packages,
...
}: {
config = {
users.users = {
shakhzod = {
isNormalUser = true;
description = "Shakhzod Kudratov";
initialPassword = "5xRN385pOxb8faNV";
openssh.authorizedKeys.keys = [
"ssh-rsa AAAAB3NzaC1yc2EAAAADAQABAAABgQDGU7pRKuTWfzRy8+Hb6vKz4+FNKfDzKA0HCLw+cxDCVXqsCBJPZXTfUZV1fxfBhfgn2IBOw99DbnmRaYeSm48ZB7V0xwqgM8Ucy2m4MJytvPbyjoEcfV434J3Xm+1R5P4tn5BvFPPseBBFrahsKXvakT07hiEJe6S28KuC3zvMN/cORfGuViGuZRslRuT3ozd8pJtDcWSod5f3ek59qwYrC8KS8ljR7kBJWgdJvAOyifuDd9POh4TcbXOykcDqYKlZlWLnFoZcCE3QUcOAELyBffEtMFRd/4N+Mgwdf6Y4YjspHNDfnSKRgNQVH/zYBnIV9jt/umdAyN9Kby0v/EGv9HI0Kb5t2/eCLPCDSyb4AQChb25xMTkGXcXcqIrLCWl6oR1/QfqUfuC8KJRp5Nj9saoi9pxtzAqU4/EXXL1EwYHaICK4LOYW+2la05Pv8wzX4ne9Xpoo0jJNCHioYacvJC1noWrDSmRU6oEhQqHKGBQU0drC/pYLmZhjAhi0JQE= shakhzod@shakhzod-workpc"
];
extraGroups = ["networkmanager" "wheel" "docker" "admins"];
};
};

home-manager = {
extraSpecialArgs = {inherit inputs outputs;};
users = {
# Import your home-manager configuration
shakhzod = import ../../../home/shakhzod.nix;
};
};
};
}
1 change: 1 addition & 0 deletions nixos/kolyma-3/configuration.nix
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,7 @@

# User configs
outputs.nixosModules.users.sakhib
outputs.nixosModules.users.shakhzod
outputs.nixosModules.users.muzaffar

# Import your deployed service list
Expand Down

0 comments on commit c40223c

Please sign in to comment.