···9595sudo nixos-rebuild --flake .#{hostname} <switch|boot|build>
9696```
97979898+### As an external flake module
9999+100100+You can easily use this flake as an external module in your own flake-based NixOS configuration
101101+if you want to reuse some of my configurations.
102102+103103+```nix
104104+{
105105+ description = "My NixOS configuration";
106106+ inputs.nixpkgs.url = "github:NixOS/nixpkgs/24.11";
107107+ inputs.andreijiroh-dev.url = "github:andreijiroh-dev/nixops-config";
108108+ # needed if you use stable instead of unstable
109109+ inputs.andreijiroh-dev.inputs.nixpkgs.follows = "nixpkgs";
110110+111111+ outputs = { self, andreijiroh-dev, nixpkgs }: {
112112+ let
113113+ # change {hostname} to something like stellapent-cier
114114+ # if you like to reuse my configs
115115+ system = nixops-config.nixosConfigurations.{hostname};
116116+ in
117117+ {
118118+ nixosConfigurations.{hostname} = system {
119119+ # your customizations here
120120+ };
121121+122122+ nixosConfigurations.your-mom = nixpkgs.lib.nixosSystem {
123123+ system = "x86_64-linux";
124124+ modules = [
125125+ andreijiroh-dev.nixosModules.networking # or any other modules
126126+ ];
127127+ };
128128+ };
129129+}
130130+```
131131+98132### Building a minimial ISO for recovery
99133100100-Currently available as `amd64` (`x86-64`) Linux ISO only for now.
134134+Currently available as `amd64` (`x86-64`) Linux ISO only for now, but you can copy
135135+the `recoverykit-amd64` NixOS configuration and change `system` to any supported CPU
136136+architectures by NixOS.
101137102138```bash
103139# Build using the sources as remote
···106142# ...or via a local clone
107143nix build .#nixosConfigurations.recoverykit-amd64.config.system.build.isoImage
108144```
145145+146146+## Availabled shared configs
147147+148148+- [`flatpak.nix`](./shared/flatpak.nix): NixOS for enabling Flatpaks
149149+- [`gnupg.nix`](./shared/gnupg.nix): GnuPG configuration
150150+- [`locale.nix`](./shared/locale.nix): Locale configuration
151151+- [`meta-configs.nix`](./shared/meta-configs.nix): Meta configurations for the system, mostly related to Nix and nixpkgs.
152152+- [`networking.nix`](./shared/networking.nix): Networking configuration, currently DNS resolver settings for `systemd-resolved`
153153+- [`ssh-keys.nix`](./shared/ssh-keys.nix): SSH keys configuration as NixOS module, intended to be in sync with my keys on git forges
154154+- [`server/devenv.nix`](./shared/server/devenv.nix): Development environment configuration, plus Docker and VM configurations.
155155+- [`server/ssh.nix`](./shared/server/ssh.nix): SSH server configuration
109156110157## License
111158
+1-1
shared/meta-configs.nix
···85858686 # Needed since Determinate Nix manages the main config file for system.
8787 environment.etc."nix/nix.custom.conf" = {
8888- source = ./misc/nix/nix.custom.conf;
8888+ source = ../misc/nix/nix.custom.conf;
8989 mode = "0644";
9090 };
9191}