Skip to content

Commit

Permalink
new johon user
Browse files Browse the repository at this point in the history
  • Loading branch information
orzklv committed Aug 28, 2024
1 parent 4aa9f22 commit 9c03f1f
Show file tree
Hide file tree
Showing 4 changed files with 72 additions and 0 deletions.
40 changes: 40 additions & 0 deletions home/jakhongir.nix
Original file line number Diff line number Diff line change
@@ -0,0 +1,40 @@
{ inputs
, lib
, pkgs
, config
, outputs
, packages
, self
, ...
}: {
imports = [
outputs.homeManagerModules.zsh
outputs.homeManagerModules.nixpkgs
outputs.homeManagerModules.packages
];

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

# 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 @@ -5,4 +5,5 @@
sardor = import ./sardor.nix;
shakhzod = import ./shakhzod.nix;
muzaffar = import ./muzaffar.nix;
jakhongir = import ./jakhongir.nix;
}
30 changes: 30 additions & 0 deletions modules/nixos/users/jakhongir.nix
Original file line number Diff line number Diff line change
@@ -0,0 +1,30 @@
{ pkgs
, inputs
, outputs
, lib
, config
, packages
, ...
}: {
config = {
users.users = {
jakhongir = {
isNormalUser = true;
description = "Jakhongir Ravshanov";
initialPassword = "F1st1ng15300Buck$!?";
openssh.authorizedKeys.keys = [
"ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAAIPv6diUR/ACrAaO5ILnPYqbj+wqZIUZTYKr0ccVnftfs jony@jonys-arch"
];
extraGroups = [ "networkmanager" "wheel" "docker" "admins" ];
};
};

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

# Import your deployed service list
./services.nix
Expand Down

0 comments on commit 9c03f1f

Please sign in to comment.