···11-# `@andreijiroh-dev/nixops-config`
11+# `@andreijiroh-dev/nixops-config` - ~ajhalili2006's NixOS + home-manager configs in a flake
2233This is @ajhalili2006's NixOS + Home Manager configuration for his laptop and homelabs,
44alongside in tildes with Nix installed and in sync with the [nixpkgs-specific branch][nix-dots]
···132132 };
133133 };
134134}
135135+```
136136+137137+If you also want to use the custom packages I built through the nixpkgs' system, just add it
138138+to your `nixpkgs.overlays` config.
139139+140140+```nix
141141+# make sure to pass `andreijiroh-dev` as `extraSpecialArgs` to your NixOS/home-manager config
142142+# on the flake.nix to avoid issues
143143+{ pkgs, andreijiroh-dev, lib, ... }:
144144+145145+{
146146+ nixpkgs.overlays = [
147147+ andreijiroh-dev.overlays.default
148148+ # other overlays
149149+ ];
150150+}
151151+```
152152+153153+### Installing utility packages
154154+155155+Replace `<package-name>` with the package you want to use. [See the `pkgs` README for details.](./pkgs/README.md)
156156+157157+```shell
158158+nix profile install github:andreijiroh-dev/nixops-config#<package-name>
135159```
136160137161### Building a minimial ISO for recovery
+19-5
flake.nix
···9999 }:
100100 let
101101 dev-pkgs = import ./pkgs;
102102- in
103103- {
104104- # For CI and other builds
105105- packages = flake-utils.lib.eachDefaultSystem (system:
102102+ # resolve the current system at evaluation time and compute the per-system packages
103103+ current = builtins.currentSystem;
104104+ systemPackages = flake-utils.lib.eachDefaultSystem (system:
106105 let
107106 pkgs = nixpkgs.legacyPackages.${system};
108107 in
109108 {
109109+ coolify-compose = pkgs.callPackage ./pkgs/coolify-compose.nix { };
110110 detect-vscode-for-git = pkgs.callPackage ./pkgs/detect-vscode-for-git.nix { };
111111 ssh-agent-loader = pkgs.callPackage ./pkgs/ssh-agent-loader.nix { };
112112 }
113113 );
114114-114114+ in
115115+ {
115116 overlays.default = final: prev: {
117117+ coolify-compose = prev.callPackage ./pkgs/coolify-compose.nix { };
116118 detect-vscode-for-git = prev.callPackage ./pkgs/detect-vscode-for-git.nix { };
117119 ssh-agent-loader = prev.callPackage ./pkgs/ssh-agent-loader.nix { };
118120 };
121121+122122+ # For CI and other builds, alongside flake-based package installs via
123123+ # packages.${arch}-${platform}.${package-name} output.
124124+ packages = systemPackages;
125125+126126+ # Convenient aliases resolved to the current system so consumers can do:
127127+ # nix profile add .#<package-name>
128128+ # instead of:
129129+ # nix profile add .#packages.x86_64-linux.<package-name>
130130+ coolify-compose = systemPackages.${current}.coolify-compose;
131131+ detect-vscode-for-git = systemPackages.${current}.detect-vscode-for-git;
132132+ ssh-agent-loader = systemPackages.${current}.ssh-agent-loader;
119133120134 nixosConfigurations = {
121135 recoverykit-amd64 = nixpkgs.lib.nixosSystem {
···11-# Nix flakes-packages utilities
11+# Nix flakes-packaged utilities
2233## What's included
4455To install them, run `nix profile add github:andreijiroh-dev/nixops-config#<package-name>` or
66add them into your NixOS/home-manager package lists after importing the flake.
7788+* [`coolify-compose`](./coolify-compose.nix)
89* [`detect-vscode-for-git`](./detect-vscode-for-git.nix)
910* [`ssh-agent-loader`](./ssh-agent-loader.nix)
1111+1212+## Other distros/non-nixpkgs format?
1313+1414+I am working on setting up a PPA soon, so keep your eyes peeled.