diff --git a/home/shakhzod.nix b/home/shakhzod.nix new file mode 100644 index 0000000..e467114 --- /dev/null +++ b/home/shakhzod.nix @@ -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; +} diff --git a/modules/nixos/users/default.nix b/modules/nixos/users/default.nix index 3ea2615..03a1091 100644 --- a/modules/nixos/users/default.nix +++ b/modules/nixos/users/default.nix @@ -2,5 +2,6 @@ { # List your users here sakhib = import ./sakhib.nix; + shakhzod = import ./shakhzod.nix; muzaffar = import ./muzaffar.nix; } diff --git a/modules/nixos/users/shakhzod.nix b/modules/nixos/users/shakhzod.nix new file mode 100644 index 0000000..1df0a77 --- /dev/null +++ b/modules/nixos/users/shakhzod.nix @@ -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; + }; + }; + }; +} diff --git a/nixos/kolyma-3/configuration.nix b/nixos/kolyma-3/configuration.nix index f1003d0..2dba0cd 100644 --- a/nixos/kolyma-3/configuration.nix +++ b/nixos/kolyma-3/configuration.nix @@ -18,6 +18,7 @@ # User configs outputs.nixosModules.users.sakhib + outputs.nixosModules.users.shakhzod outputs.nixosModules.users.muzaffar # Import your deployed service list