NixOS + home-manager configs, mirrored from GitLab SaaS. gitlab.com/andreijiroh-dev/nixops-config
nix-flake nixos home-manager nixpkgs nix-flakes
1
fork

Configure Feed

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

chore(home-manager): add nerd-fonts and credential managers for git

also worked on per-arch setups due to pkgs hell on flake.nix and
bumping system.stateVersion to 25.05

Signed-off-by: Andrei Jiroh Halili <ajhalili2006@andreijiroh.dev>

+104 -24
+17
flake.nix
··· 135 135 # - Locally: 136 136 # nix run home-manager/master -- switch --flake .#plain 137 137 plain = home-manager.lib.homeManagerConfiguration { 138 + pkgs = nixpkgs.legacyPackages.x86_64-linux; 138 139 modules = [ 139 140 ./shared/home-manager/main.nix 141 + { 142 + home.username = "ajhalili2006"; 143 + home.homeDirectory = "/home/ajhalili2006"; 144 + } 145 + ]; 146 + }; 147 + 148 + # Usage 149 + # - From GitHub: 150 + # nix run home-manager/master -- switch --flake github:andreijiroh-dev/nixops-config#arm64-plain 151 + # - Locally: 152 + # nix run home-manager/master -- switch --flake .#arm64-plain 153 + arm64-plain = home-manager.lib.homeManagerConfiguration { 154 + pkgs = nixpkgs.legacyPackages.aarch64-linux; 155 + modules = [ 156 + ./shared/home-manager/nogui.nix 140 157 { 141 158 home.username = "ajhalili2006"; 142 159 home.homeDirectory = "/home/ajhalili2006";
+1 -2
hosts/stellapent-cier/configuration.nix
··· 153 153 # this value at the release version of the first install of this system. 154 154 # Before changing this value read the documentation for this option 155 155 # (e.g. man configuration.nix or on https://nixos.org/nixos/options.html). 156 - system.stateVersion = "24.11"; # Did you read the comment? 157 - 156 + system.stateVersion = "25.05"; # Did you read the comment? 158 157 }
+17
shared/desktop/fonts.nix
··· 1 + { pkgs, ... }: 2 + 3 + { 4 + # enable font dirs 5 + fonts = { 6 + fontDir.enable = true; 7 + packages = with pkgs; [ 8 + dejavu_fonts 9 + cascadia-code 10 + 11 + # nerd fonts (requires setting system.stateVersion to 25.05+) 12 + nerd-fonts.fira-code 13 + nerd-fonts.caskaydia-mono 14 + nerd-fonts.caskaydia-cove 15 + ]; 16 + }; 17 + }
+12
shared/home-manager/desktop.nix
··· 1 + # Desktop apps and related configs go here in this Nix file 2 + { pkgs, ... }: 3 + 4 + { 5 + home.packages = with pkgs; [ 6 + _1password-gui 7 + firefoxpwa 8 + kdePackages.krfb 9 + mysql-workbench 10 + remmina 11 + ]; 12 + }
+14
shared/home-manager/fonts.nix
··· 1 + { pkgs, ... }: 2 + 3 + { 4 + fonts.fontconfig.enable = true; 5 + home.packages = with pkgs; [ 6 + dejavu_fonts 7 + cascadia-code 8 + 9 + # nerd fonts (requires setting system.stateVersion to 25.05+) 10 + nerd-fonts.fira-code 11 + nerd-fonts.caskaydia-mono 12 + nerd-fonts.caskaydia-cove 13 + ]; 14 + }
+9
shared/home-manager/git.nix
··· 40 40 defaultBranch = "main"; 41 41 }; 42 42 43 + # credential helpers 44 + credential = { 45 + "https://github.com".helper = "!gh auth git-credential"; 46 + "https://gist.github.com".helper = "!gh auth git-credential"; 47 + "https://gitlab.com".helper = "!glab auth git-credential"; 48 + "https://mau.dev".helper = "!glab auth git-credential"; 49 + "https://gitlab.alpinelinux.org".helper = "!glab auth git-credential"; 50 + }; 51 + 43 52 # see https://groups.google.com/g/binary-transparency/c/f-BI4o8HZW0/m/MDmnWideAgAJ for 44 53 # context behind these, may cause bugs per https://bugs.debian.org/743227 and 45 54 # https://bugs.debian.org/813157 on cloning linux-hardware sources.
+2
shared/home-manager/main.nix
··· 7 7 { 8 8 imports = [ 9 9 ./packages.nix 10 + ./desktop.nix 10 11 ./git.nix 11 12 ./shell.nix 13 + ./fonts.nix 12 14 ]; 13 15 14 16 # https://fnordig.de/til/nix/home-manager-allow-unfree.html
-15
shared/home-manager/nest.nix
··· 1 - { pkgs, ... }: 2 - 3 - { 4 - imports = [ 5 - ./git.nix 6 - ./packages.nix 7 - ./shell.nix 8 - ]; 9 - 10 - # let hm install and manage itself 11 - programs.home-manager.enable = true; 12 - 13 - # check docs before bumping this 14 - home.stateVersion = "24.11"; 15 - }
+32
shared/home-manager/nogui.nix
··· 1 + { pkgs, ... }: 2 + 3 + { 4 + imports = [ 5 + ./git.nix 6 + ./packages.nix 7 + ./shell.nix 8 + ./fonts.nix 9 + ]; 10 + 11 + # https://fnordig.de/til/nix/home-manager-allow-unfree.html 12 + nixpkgs = { 13 + config = { 14 + allowUnfree = true; 15 + # https://github.com/nix-community/home-manager/issues/2942 16 + allowUnfreePredicate = (_: true); 17 + }; 18 + }; 19 + 20 + # This value determines the Home Manager release that your configuration is 21 + # compatible with. This helps avoid breakage when a new Home Manager release 22 + # introduces backwards incompatible changes. 23 + # 24 + # You should not change this value, even if you update Home Manager. If you do 25 + # want to update the value, then make sure to first check the Home Manager 26 + # release notes. 27 + home.stateVersion = "24.11"; # Please read the comment before changing. 28 + 29 + home.sessionPath = [ 30 + "$HOME/bin" 31 + ]; 32 + }
-7
shared/home-manager/packages.nix
··· 16 16 # (pkgs.writeShellScriptBin "my-hello" '' 17 17 # echo "Hello, ${config.home.username}!" 18 18 # '') 19 - ## desktop apps ## 20 - _1password-gui 21 - firefoxpwa 22 - # imported from my nix profile list to avoid conflicts # 23 - kdePackages.krfb 24 - mysql-workbench 25 - remmina 26 19 rpi-imager 27 20 28 21 ## devtools ##