Skip to content

Commit

Permalink
added muzaffar user
Browse files Browse the repository at this point in the history
  • Loading branch information
orzklv committed Jul 1, 2024
1 parent 8fc1ca2 commit 979cdb2
Show file tree
Hide file tree
Showing 6 changed files with 71 additions and 8 deletions.
36 changes: 36 additions & 0 deletions home/muzaffar.nix
Original file line number Diff line number Diff line change
@@ -0,0 +1,36 @@
{
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 = "muzaffar";
homeDirectory = "/home/muzaffar";

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

programs.neovim = {
enable = true;
defaultEditor = true;
viAlias = true;
vimAlias = true;
};

# Let's enable home-manager
programs.home-manager.enable = true;
}
7 changes: 2 additions & 5 deletions modules/home/topgrade/default.nix
Original file line number Diff line number Diff line change
Expand Up @@ -18,11 +18,8 @@
};
commands = {};
linux = {
nix_arguments = "--flake github:orzklv/nix";
home_manager_arguments = ["--flake" "github:orzklv/nix"];
};
brew = {
autoremove = true;
nix_arguments = "--flake github:kolyma-labs/instances";
home_manager_arguments = ["--flake" "github:kolyma-labs/instances"];
};
};
};
Expand Down
2 changes: 1 addition & 1 deletion modules/home/zsh/default.nix
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@
"...." = "cd ../..";
"celar" = "clear";
":q" = "exit";
neofetch = "neofetch --source ~/.config/neofetch/logo.ascii";
neofetch = "fastfetch";
ssh-hosts = "grep -P \"^Host ([^*]+)$\" $HOME/.ssh/config | sed 's/Host //'";

# Polite motherfucker!
Expand Down
1 change: 1 addition & 0 deletions modules/nixos/users/default.nix
Original file line number Diff line number Diff line change
Expand Up @@ -2,4 +2,5 @@
{
# List your users here
sakhib = import ./sakhib.nix;
muzaffar = import ./muzaffar.nix;
}
31 changes: 31 additions & 0 deletions modules/nixos/users/muzaffar.nix
Original file line number Diff line number Diff line change
@@ -0,0 +1,31 @@
{
pkgs,
inputs,
outputs,
lib,
config,
packages,
...
}: {
config = {
users.users = {
muzaffar = {
isNormalUser = true;
description = "Muzaffar Anasbekov";
initialPassword = "2ReTpN1XG2VOR4aR";
openssh.authorizedKeys.keys = [
"ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAAIJHDSH+E/7791S2x2QF3WsQU1nnr7WNLyK1BubDmOeib [email protected]"
];
extraGroups = ["networkmanager" "wheel" "docker" "admins"];
};
};

home-manager = {
extraSpecialArgs = {inherit inputs outputs;};
users = {
# Import your home-manager configuration
muzaffar = import ../../../home/muzaffar.nix;
};
};
};
}
2 changes: 0 additions & 2 deletions modules/nixos/users/sakhib.nix
Original file line number Diff line number Diff line change
Expand Up @@ -17,8 +17,6 @@
"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"];
# packages =
# (with pkgs; []) ++ (with pkgs.unstable; []);
};
};

Expand Down

0 comments on commit 979cdb2

Please sign in to comment.