this repo has no description
0
fork

Configure Feed

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

:sparkles: updated home manager

+63 -12
+14 -3
README.org
··· 13 13 outputs = { self, nixpkgs, home-manager, ... }: let 14 14 system = "x86_64-linux"; 15 15 hostname = "nixos"; 16 + stateVersion = "22.11"; 16 17 pkgs = import nixpkgs {inherit system;}; 18 + users = { 19 + pedro = { 20 + username = "pedro"; 21 + }; 22 + }; 17 23 in { 18 24 <<outputs>> 19 25 }; ··· 60 66 home-manager.nixosModules.home-manager 61 67 { 62 68 home-manager = { 63 - useGlobalPkgs = true; 64 - useUserPackages = true; 65 - users.pedro = import ./home.nix; 69 + useGlobalPkgs = true; 70 + useUserPackages = true; 71 + users.pedro = import ./home-manager { 72 + config = self; 73 + pkgs = pkgs; 74 + username = users.pedro.username; 75 + stateVersion = stateVersion; 76 + }; 66 77 }; 67 78 } 68 79 ];
+14 -3
flake.nix
··· 12 12 outputs = { self, nixpkgs, home-manager, ... }: let 13 13 system = "x86_64-linux"; 14 14 hostname = "nixos"; 15 + stateVersion = "22.11"; 15 16 pkgs = import nixpkgs {inherit system;}; 17 + users = { 18 + pedro = { 19 + username = "pedro"; 20 + }; 21 + }; 16 22 in { 17 23 nixosConfigurations.${hostname} = nixpkgs.lib.nixosSystem { 18 24 inherit system; ··· 22 28 home-manager.nixosModules.home-manager 23 29 { 24 30 home-manager = { 25 - useGlobalPkgs = true; 26 - useUserPackages = true; 27 - users.pedro = import ./home.nix; 31 + useGlobalPkgs = true; 32 + useUserPackages = true; 33 + users.pedro = import ./home-manager { 34 + config = self; 35 + pkgs = pkgs; 36 + username = users.pedro.username; 37 + stateVersion = stateVersion; 38 + }; 28 39 }; 29 40 } 30 41 ];
+15
home-manager/git/default.nix
··· 1 + { 2 + programs.git = { 3 + enable = true; 4 + userName = "Pedro Correa"; 5 + userEmail = "pedro8correa@gmail.com"; 6 + signing = { 7 + key = "2748A6200C9EE0B4"; 8 + signByDefault = true; 9 + }; 10 + ignores = [ "*~" "*.swp" ]; 11 + extraConfig = { 12 + commit.template = "~/.config/git/message"; 13 + }; 14 + }; 15 + }
+11
home-manager/git/message
··· 1 + 2 + 3 + # [feat|fix|docs|style|refactor|perf|test|chore] [issue #id] [summary] 4 + # feat: Added a new feature 5 + # fix: Fixed a bug 6 + # docs: Documentation changes 7 + # style: Code style change 8 + # refactor: Refactor code without changes 9 + # perf: Update code performances 10 + # test: Added test to existing features 11 + # chore: Update something without impact the user
+9 -6
home.nix home-manager/default.nix
··· 1 - { config, pkgs, ... }: 1 + { config, pkgs, username, stateVersion, ... }: 2 2 3 3 { 4 4 # Home Manager needs a bit of information about you and the paths it should 5 5 # manage. 6 - home.username = "pedro"; 7 - home.homeDirectory = "/home/pedro"; 6 + home.username = username; 7 + home.homeDirectory = "/home/${username}"; 8 + 9 + imports = [ 10 + ./git 11 + ]; 8 12 9 13 # This value determines the Home Manager release that your configuration is 10 14 # compatible with. This helps avoid breakage when a new Home Manager release ··· 13 17 # You should not change this value, even if you update Home Manager. If you do 14 18 # want to update the value, then make sure to first check the Home Manager 15 19 # release notes. 16 - home.stateVersion = "22.11"; # Please read the comment before changing. 20 + home.stateVersion = stateVersion; # Please read the comment before changing. 17 21 18 22 # The home.packages option allows you to install Nix packages into your 19 23 # environment. ··· 88 92 firefox = { 89 93 enable = true; 90 94 91 - profiles.pedro = { 95 + profiles.${username} = { 92 96 settings = { 93 97 "toolkit.legacyUserProfileCustomizations.stylesheets" = true; 94 98 "findbar.highlightAll" = true; ··· 308 312 }; 309 313 }; 310 314 }; 311 - 312 315 313 316 services = { 314 317 gpg-agent = {