this repo has no description
0
fork

Configure Feed

Select the types of activity you want to include in your feed.

:sparkles: using home manager as standalone

+48 -41
+26 -21
README.org
··· 10 10 <<inputs>> 11 11 }; 12 12 13 - outputs = { self, nixpkgs, home-manager, ... }: let 13 + outputs = { self, nixpkgs, home-manager, ... }@inputs: let 14 14 system = "x86_64-linux"; 15 15 hostname = "nixos"; 16 16 stateVersion = "22.11"; 17 17 pkgs = import nixpkgs {inherit system;}; 18 18 users = { 19 - pedro = { 20 - username = "pedro"; 21 - }; 19 + pedro = { 20 + username = "pedro"; 21 + }; 22 22 }; 23 23 in { 24 24 <<outputs>> ··· 58 58 59 59 *** NixOS System 60 60 #+begin_src nix 61 - nixosConfigurations.${hostname} = nixpkgs.lib.nixosSystem { 62 - inherit system; 61 + nixosConfigurations = { 62 + ${hostname} = nixpkgs.lib.nixosSystem { 63 + inherit system; 63 64 64 - modules = [ 65 - ./hosts/desktop 65 + modules = [ 66 + ./hosts/desktop 67 + ]; 68 + }; 69 + }; 70 + #+end_src 66 71 67 - home-manager.nixosModules.home-manager 68 - { 69 - home-manager = { 70 - useGlobalPkgs = true; 71 - useUserPackages = true; 72 - users.pedro = import ./home { 73 - config = self; 74 - username = users.pedro.username; 75 - inherit stateVersion pkgs; 76 - }; 77 - }; 78 - } 79 - ]; 72 + *** Home Manager 73 + #+begin_src nix 74 + homeConfigurations = { 75 + pedro = home-manager.lib.homeManagerConfiguration { 76 + inherit pkgs; 77 + extraSpecialArgs = { 78 + inherit stateVersion; 79 + username = users.pedro.username; 80 + }; 81 + modules = [ 82 + ./home 83 + ]; 84 + }; 80 85 }; 81 86 #+end_src 82 87
+21 -20
flake.nix
··· 9 9 }; 10 10 }; 11 11 12 - outputs = { self, nixpkgs, home-manager, ... }: let 12 + outputs = { self, nixpkgs, home-manager, ... }@inputs: let 13 13 system = "x86_64-linux"; 14 14 hostname = "nixos"; 15 15 stateVersion = "22.11"; 16 16 pkgs = import nixpkgs {inherit system;}; 17 17 users = { 18 18 pedro = { 19 - username = "pedro"; 19 + username = "pedro"; 20 20 }; 21 21 }; 22 22 in { 23 - nixosConfigurations.${hostname} = nixpkgs.lib.nixosSystem { 24 - inherit system; 23 + nixosConfigurations = { 24 + ${hostname} = nixpkgs.lib.nixosSystem { 25 + inherit system; 25 26 26 - modules = [ 27 - ./hosts/desktop 28 - 29 - home-manager.nixosModules.home-manager 30 - { 31 - home-manager = { 32 - useGlobalPkgs = true; 33 - useUserPackages = true; 34 - users.pedro = import ./home { 35 - config = self; 36 - username = users.pedro.username; 37 - inherit stateVersion pkgs; 38 - }; 39 - }; 40 - } 41 - ]; 27 + modules = [ 28 + ./hosts/desktop 29 + ]; 30 + }; 31 + }; 32 + homeConfigurations = { 33 + pedro = home-manager.lib.homeManagerConfiguration { 34 + inherit pkgs; 35 + extraSpecialArgs = { 36 + inherit stateVersion; 37 + username = users.pedro.username; 38 + }; 39 + modules = [ 40 + ./home 41 + ]; 42 + }; 42 43 }; 43 44 }; 44 45 }
+1
hosts/desktop/default.nix
··· 138 138 git 139 139 vim # Do not forget to add an editor to edit configuration.nix! The Nano editor is also installed by default. 140 140 wget 141 + home-manager 141 142 ]; 142 143 }; 143 144