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.

one final fix and update docs btw

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

+49 -2
+48 -1
README.md
··· 95 95 sudo nixos-rebuild --flake .#{hostname} <switch|boot|build> 96 96 ``` 97 97 98 + ### As an external flake module 99 + 100 + You can easily use this flake as an external module in your own flake-based NixOS configuration 101 + if you want to reuse some of my configurations. 102 + 103 + ```nix 104 + { 105 + description = "My NixOS configuration"; 106 + inputs.nixpkgs.url = "github:NixOS/nixpkgs/24.11"; 107 + inputs.andreijiroh-dev.url = "github:andreijiroh-dev/nixops-config"; 108 + # needed if you use stable instead of unstable 109 + inputs.andreijiroh-dev.inputs.nixpkgs.follows = "nixpkgs"; 110 + 111 + outputs = { self, andreijiroh-dev, nixpkgs }: { 112 + let 113 + # change {hostname} to something like stellapent-cier 114 + # if you like to reuse my configs 115 + system = nixops-config.nixosConfigurations.{hostname}; 116 + in 117 + { 118 + nixosConfigurations.{hostname} = system { 119 + # your customizations here 120 + }; 121 + 122 + nixosConfigurations.your-mom = nixpkgs.lib.nixosSystem { 123 + system = "x86_64-linux"; 124 + modules = [ 125 + andreijiroh-dev.nixosModules.networking # or any other modules 126 + ]; 127 + }; 128 + }; 129 + } 130 + ``` 131 + 98 132 ### Building a minimial ISO for recovery 99 133 100 - Currently available as `amd64` (`x86-64`) Linux ISO only for now. 134 + Currently available as `amd64` (`x86-64`) Linux ISO only for now, but you can copy 135 + the `recoverykit-amd64` NixOS configuration and change `system` to any supported CPU 136 + architectures by NixOS. 101 137 102 138 ```bash 103 139 # Build using the sources as remote ··· 106 142 # ...or via a local clone 107 143 nix build .#nixosConfigurations.recoverykit-amd64.config.system.build.isoImage 108 144 ``` 145 + 146 + ## Availabled shared configs 147 + 148 + - [`flatpak.nix`](./shared/flatpak.nix): NixOS for enabling Flatpaks 149 + - [`gnupg.nix`](./shared/gnupg.nix): GnuPG configuration 150 + - [`locale.nix`](./shared/locale.nix): Locale configuration 151 + - [`meta-configs.nix`](./shared/meta-configs.nix): Meta configurations for the system, mostly related to Nix and nixpkgs. 152 + - [`networking.nix`](./shared/networking.nix): Networking configuration, currently DNS resolver settings for `systemd-resolved` 153 + - [`ssh-keys.nix`](./shared/ssh-keys.nix): SSH keys configuration as NixOS module, intended to be in sync with my keys on git forges 154 + - [`server/devenv.nix`](./shared/server/devenv.nix): Development environment configuration, plus Docker and VM configurations. 155 + - [`server/ssh.nix`](./shared/server/ssh.nix): SSH server configuration 109 156 110 157 ## License 111 158
+1 -1
shared/meta-configs.nix
··· 85 85 86 86 # Needed since Determinate Nix manages the main config file for system. 87 87 environment.etc."nix/nix.custom.conf" = { 88 - source = ./misc/nix/nix.custom.conf; 88 + source = ../misc/nix/nix.custom.conf; 89 89 mode = "0644"; 90 90 }; 91 91 }