From 8f52ef94992f0377f5b3728cf0dca1888b2412aa Mon Sep 17 00:00:00 2001 From: sokai Date: Tue, 7 Oct 2025 21:44:40 +0200 Subject: [PATCH] =?UTF-8?q?chore:=20nixos=20=E2=86=92=20mynixos;=20urls=20?= =?UTF-8?q?changed?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- README.md | 29 +++++++++++------------------ 1 file changed, 11 insertions(+), 18 deletions(-) diff --git a/README.md b/README.md index a81504c..43cee27 100644 --- a/README.md +++ b/README.md @@ -1,10 +1,8 @@ [Installation](#installation) -# 🍵 nixos-extra-modules +# 🍵 mynixos-extra-modules -This repository contains extra modules for nixos that are very opinionated and mainly -useful to me and my colleagues. All modules in here are opt-in, so nothing will -be changed unless you decide you want to use that specific module. +This repository contains extra modules for `mynixos` that are very opinionated and mainly useful to me and my colleagues. All modules in here are opt-in, so nothing will be changed unless you decide you want to use that specific module. ## Overview @@ -31,12 +29,9 @@ Wallpapers | Module | [Link](./hm-modules/wallpapers.nix) | - | - | A simple wal ## Installation -To use the extra modules, you will have to add this project to your `flake.nix`, -and import the provided main NixOS module in your hosts. Afterwards the new options -will be available. +To use the extra modules, you will have to add this project to your `flake.nix`, and import the provided main NixOS module in your hosts. Afterwards the new options will be available. -Certain modules may require the use of additional flakes. In particular -depending on the modules you want to use, you might need: +Certain modules may require the use of additional flakes. In particular depending on the modules you want to use, you might need: - [agenix](https://github.com/ryantm/agenix) - [agenix-rekey](https://github.com/oddlama/agenix-rekey) @@ -45,13 +40,9 @@ depending on the modules you want to use, you might need: - [impermanence](https://github.com/nix-community/impermanence) - [microvm.nix](https://github.com/astro/microvm.nix) -You also must have a `specialArgs.inputs` that refers to all of your flake's inputs, -and `inputs.self.pkgs.${system}` must refer to an initialized package set for that -specific system that includes extra-modules as an overlay. +You also must have a `specialArgs.inputs` that refers to all of your flake's inputs, and `inputs.self.pkgs.${system}` must refer to an initialized package set for that specific system that includes extra-modules as an overlay. -All cross-node configuration modules (like wireguard) require you to expose -all relevant nodes in your flake as `inputs.self.nodes`, so their configuration -can be accessed by other nodes. +All cross-node configuration modules (like wireguard) require you to expose all relevant nodes in your flake as `inputs.self.nodes`, so their configuration can be accessed by other nodes. Here's an example configuration: @@ -60,13 +51,14 @@ Here's an example configuration: inputs = { flake-utils.url = "github:numtide/flake-utils"; + # TODO: "nixos-extra-modules" → "mynixos-extra-modules"? nixos-extra-modules = { - url = "github:oddlama/nixos-extra-modules"; + url = "git+ssh://git@git.mediani.de/sokai/mynixos-extra-modules"; inputs.nixpkgs.follows = "nixpkgs"; inputs.flake-utils.follows = "flake-utils"; }; - nixpkgs.url = "github:NixOS/nixpkgs/nixos-unstable"; + nixpkgs.url = "git+ssh://git@git.mediani.de/mirrors/NixOS_nixpkgs?ref=nixos-25.05"; # Additional inputs, may or may not be needed for a particular module or extension. # Enable what you use. @@ -110,7 +102,7 @@ Here's an example configuration: ... } @ inputs: { # Example system configuration - nixosConfigurations.yourhostname = let + nixosConfigurations.myhostname = let system = "x86_64-linux"; pkgs = self.pkgs.${system}; in nixpkgs.lib.nixosSystem { @@ -153,3 +145,4 @@ Here's an example configuration: } } ``` +… or have a look [@`oddlama/nix-config`](https://github.com/oddlama/nix-config) <3 :) \ No newline at end of file