Use nixos-unified

This commit is contained in:
Sridhar Ratnakumar 2024-10-04 12:54:07 -04:00
parent d4f5109a88
commit 2de06ee965
No known key found for this signature in database
4 changed files with 23 additions and 24 deletions

View file

@ -2,7 +2,7 @@
[![project chat](https://img.shields.io/badge/zulip-join_chat-brightgreen.svg)](https://nixos.zulipchat.com/#narrow/stream/413948-nixos) [![project chat](https://img.shields.io/badge/zulip-join_chat-brightgreen.svg)](https://nixos.zulipchat.com/#narrow/stream/413948-nixos)
[![Harmeless Code of Conduct](https://img.shields.io/badge/harmless-8A2BE2)](https://srid.ca/coc "This project follows the 'Harmlessness Code of Conduct'") [![Harmeless Code of Conduct](https://img.shields.io/badge/harmless-8A2BE2)](https://srid.ca/coc "This project follows the 'Harmlessness Code of Conduct'")
This repository contains the Nix / NixOS configuration for all of my systems. See [nixos-flake](https://community.flake.parts/nixos-flake) if you wish to create your own configuration from scratch. This repository contains the Nix / NixOS configuration for all of my systems. See [nixos-unified](https://nixos-unified.org) if you wish to create your own configuration from scratch.
## Setup ## Setup
@ -54,7 +54,7 @@ Start from `flake.nix` (see [Flakes](https://nixos.wiki/wiki/Flakes)). [`flake-p
| `./mdules/{nixos,darwin,home,flake-parts}/foo.nix` | `{nixos,darwin,home,flake}Modules.foo` | | `./mdules/{nixos,darwin,home,flake-parts}/foo.nix` | `{nixos,darwin,home,flake}Modules.foo` |
| `./overlays/foo.nix` | `overlays.foo` | | `./overlays/foo.nix` | `overlays.foo` |
| `./packages` | N/A (Nix packages) | | `./packages` | N/A (Nix packages) |
| `./secrets` | N/A (agenix data) | | `./secrets` | N/A (agenix data) |
## Tips ## Tips

33
flake.lock generated
View file

@ -689,22 +689,6 @@
"type": "github" "type": "github"
} }
}, },
"nixos-flake": {
"locked": {
"lastModified": 1727741402,
"narHash": "sha256-dUtUaG8norNNdqX9UM/31/fbpkiyBf4iKLr02agjEcI=",
"owner": "srid",
"repo": "nixos-flake",
"rev": "82752b478b4ae17248983a4cbc6a7dbd0acb71a1",
"type": "github"
},
"original": {
"owner": "srid",
"ref": "autoWire",
"repo": "nixos-flake",
"type": "github"
}
},
"nixos-hardware": { "nixos-hardware": {
"locked": { "locked": {
"lastModified": 1678397099, "lastModified": 1678397099,
@ -720,6 +704,21 @@
"type": "github" "type": "github"
} }
}, },
"nixos-unified": {
"locked": {
"lastModified": 1727917530,
"narHash": "sha256-yXjRRdwmeUeuUwANwY2630Utr3crjq43KNpXZpl5Xo8=",
"owner": "srid",
"repo": "nixos-unified",
"rev": "469a19843f13ed5196ef73154c4c96a1e48cf626",
"type": "github"
},
"original": {
"owner": "srid",
"repo": "nixos-unified",
"type": "github"
}
},
"nixos-vscode-server": { "nixos-vscode-server": {
"inputs": { "inputs": {
"flake-utils": "flake-utils_2", "flake-utils": "flake-utils_2",
@ -1048,8 +1047,8 @@
"home-manager": "home-manager", "home-manager": "home-manager",
"nix-darwin": "nix-darwin", "nix-darwin": "nix-darwin",
"nix-index-database": "nix-index-database", "nix-index-database": "nix-index-database",
"nixos-flake": "nixos-flake",
"nixos-hardware": "nixos-hardware", "nixos-hardware": "nixos-hardware",
"nixos-unified": "nixos-unified",
"nixos-vscode-server": "nixos-vscode-server", "nixos-vscode-server": "nixos-vscode-server",
"nixpkgs": "nixpkgs_4", "nixpkgs": "nixpkgs_4",
"nixvim": "nixvim", "nixvim": "nixvim",

View file

@ -10,7 +10,7 @@
home-manager.url = "github:nix-community/home-manager"; home-manager.url = "github:nix-community/home-manager";
home-manager.inputs.nixpkgs.follows = "nixpkgs"; home-manager.inputs.nixpkgs.follows = "nixpkgs";
nixos-hardware.url = "github:NixOS/nixos-hardware"; nixos-hardware.url = "github:NixOS/nixos-hardware";
nixos-flake.url = "github:srid/nixos-flake/autoWire"; # https://github.com/srid/nixos-flake/pull/74 nixos-unified.url = "github:srid/nixos-unified";
disko.url = "github:nix-community/disko"; disko.url = "github:nix-community/disko";
disko.inputs.nixpkgs.follows = "nixpkgs"; disko.inputs.nixpkgs.follows = "nixpkgs";
ragenix.url = "github:yaxitech/ragenix"; ragenix.url = "github:yaxitech/ragenix";

View file

@ -1,20 +1,20 @@
{ inputs, ... }: { inputs, ... }:
{ {
imports = [ imports = [
inputs.nixos-flake.flakeModules.default inputs.nixos-unified.flakeModules.default
inputs.nixos-flake.flakeModules.autoWire inputs.nixos-unified.flakeModules.autoWire
]; ];
perSystem = { self', ... }: { perSystem = { self', ... }: {
packages.default = self'.packages.activate; packages.default = self'.packages.activate;
# Flake inputs we want to update periodically # Flake inputs we want to update periodically
# Run: `nix run .#update`. # Run: `nix run .#update`.
nixos-flake = { nixos-unified = {
primary-inputs = [ primary-inputs = [
"nixpkgs" "nixpkgs"
"home-manager" "home-manager"
"nix-darwin" "nix-darwin"
"nixos-flake" "nixos-unified"
"nix-index-database" "nix-index-database"
"nixvim" "nixvim"
"omnix" "omnix"