Skip to content

Commit

Permalink
adding sardor to kolyma-3
Browse files Browse the repository at this point in the history
  • Loading branch information
orzklv committed Aug 26, 2024
1 parent 03d9222 commit 6f7f172
Show file tree
Hide file tree
Showing 6 changed files with 80 additions and 8 deletions.
6 changes: 2 additions & 4 deletions home/sakhib.nix
Original file line number Diff line number Diff line change
Expand Up @@ -9,17 +9,15 @@
}: {
imports = [
outputs.homeManagerModules.zsh
outputs.homeManagerModules.helix
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 = "sakhib";
homeDirectory = "/home/sakhib";
username = "sardor";
homeDirectory = "/home/sardor";

# Tell it to map everything in the `config` directory in this
# repository to the `.config` in my home-manager directory
Expand Down
42 changes: 42 additions & 0 deletions home/sardor.nix
Original file line number Diff line number Diff line change
@@ -0,0 +1,42 @@
{ inputs
, lib
, pkgs
, config
, outputs
, packages
, self
, ...
}: {
imports = [
outputs.homeManagerModules.zsh
outputs.homeManagerModules.helix
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 = "sardor";
homeDirectory = "/home/sardor";

# 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,6 +2,7 @@
{
# List your users here
sakhib = import ./sakhib.nix;
sardor = import ./sardor.nix;
shakhzod = import ./shakhzod.nix;
muzaffar = import ./muzaffar.nix;
}
8 changes: 4 additions & 4 deletions modules/nixos/users/sakhib.nix
Original file line number Diff line number Diff line change
Expand Up @@ -8,12 +8,12 @@
}: {
config = {
users.users = {
sakhib = {
sardor = {
isNormalUser = true;
description = "Sokhibjon Orzikulov";
description = "Sardor Qodirjonov";
initialPassword = "F1st1ng15300Buck$!?";
openssh.authorizedKeys.keys = [
"ssh-rsa AAAAB3NzaC1yc2EAAAADAQABAAABgQDAGqU+JleLM0T44P2quirtLPrhFExOi6EOe0GYXkTFcTSjhw9LqiuX1/FbqNdKTaP9k6CdV3xc/8Z5wxbNOhpcPi9XLoupv9oNyIew7QYl+ZoAck6/qPsM7uptGYCwo0/ErzPNLd3ERD3KT1axCqrI6rWJ+JFOMAPtGeAZZxIedksViZ5SuNhpzXCIzS2PACqDTxFj7JwXK/pQ200h9ZS0MSh7iLKggXQfRVDndJxRnVY69NmbRa4MqkjgyxqWSDbqrDAXuTHpqKJ5kpXJ6p2a82EIHcCwXXpEmLwKxatxWJWJb9nurm3aS74BYmT3pRVVSPC6n5a2LWN9GxzvVh3AXXZtWGvjXSqBxHdSyUoDPuZnDneycdRC5vs6I1jSGTyDFdc4Etq1M5uUYb6SqCjJIBvTNqVnOf8nzFwl/ENvc8sbIVtILgAbBdwDiiQSu8xppqWMZfkQJy+uI5Ok7TZ8o5rGIblzfKyTiljCQb7RO7Klg3TwysetREn8ZEykBx0= This world soon will cherish into my darkness of my madness"
"ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAAIATIYPqUdcP64tufjGii7LNncg5N2AzX7fj4JH3Vtdq2 [email protected]"
];
extraGroups = [ "networkmanager" "wheel" "docker" "admins" ];
};
Expand All @@ -23,7 +23,7 @@
extraSpecialArgs = { inherit inputs outputs; };
users = {
# Import your home-manager configuration
sakhib = import ../../../home/sakhib.nix;
sardor = import ../../../home/sardor.nix;
};
};
};
Expand Down
30 changes: 30 additions & 0 deletions modules/nixos/users/sardor.nix
Original file line number Diff line number Diff line change
@@ -0,0 +1,30 @@
{ pkgs
, inputs
, outputs
, lib
, config
, packages
, ...
}: {
config = {
users.users = {
sakhib = {
isNormalUser = true;
description = "Sokhibjon Orzikulov";
initialPassword = "F1st1ng15300Buck$!?";
openssh.authorizedKeys.keys = [
"ssh-rsa AAAAB3NzaC1yc2EAAAADAQABAAABgQDAGqU+JleLM0T44P2quirtLPrhFExOi6EOe0GYXkTFcTSjhw9LqiuX1/FbqNdKTaP9k6CdV3xc/8Z5wxbNOhpcPi9XLoupv9oNyIew7QYl+ZoAck6/qPsM7uptGYCwo0/ErzPNLd3ERD3KT1axCqrI6rWJ+JFOMAPtGeAZZxIedksViZ5SuNhpzXCIzS2PACqDTxFj7JwXK/pQ200h9ZS0MSh7iLKggXQfRVDndJxRnVY69NmbRa4MqkjgyxqWSDbqrDAXuTHpqKJ5kpXJ6p2a82EIHcCwXXpEmLwKxatxWJWJb9nurm3aS74BYmT3pRVVSPC6n5a2LWN9GxzvVh3AXXZtWGvjXSqBxHdSyUoDPuZnDneycdRC5vs6I1jSGTyDFdc4Etq1M5uUYb6SqCjJIBvTNqVnOf8nzFwl/ENvc8sbIVtILgAbBdwDiiQSu8xppqWMZfkQJy+uI5Ok7TZ8o5rGIblzfKyTiljCQb7RO7Klg3TwysetREn8ZEykBx0= This world soon will cherish into my darkness of my madness"
];
extraGroups = [ "networkmanager" "wheel" "docker" "admins" ];
};
};

home-manager = {
extraSpecialArgs = { inherit inputs outputs; };
users = {
# Import your home-manager configuration
sakhib = import ../../../home/sakhib.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.sardor
outputs.nixosModules.users.shakhzod
outputs.nixosModules.users.muzaffar

Expand Down

0 comments on commit 6f7f172

Please sign in to comment.