From 26a95a16ed2441ec2427727bbc3541c5c9bdd287 Mon Sep 17 00:00:00 2001 From: outfoxxed Date: Mon, 28 Jul 2025 23:56:24 -0700 Subject: [PATCH] init --- allsystems.nix | 7 +++++++ flake.lock | 42 ++++++++++++++++++++++++++++++++++++++++++ flake.nix | 29 +++++++++++++++++++++++++++++ 3 files changed, 78 insertions(+) create mode 100644 allsystems.nix create mode 100644 flake.lock create mode 100644 flake.nix diff --git a/allsystems.nix b/allsystems.nix new file mode 100644 index 0000000..6ed4879 --- /dev/null +++ b/allsystems.nix @@ -0,0 +1,7 @@ +{ flake, inputs, ... }: { + imports = [ inputs.impurity.nixosModules.impurity ]; + impurity.configRoot = flake; + + # preserve the flake that build the current generation + environment.etc.current-flake.source = flake; +} diff --git a/flake.lock b/flake.lock new file mode 100644 index 0000000..0cbe085 --- /dev/null +++ b/flake.lock @@ -0,0 +1,42 @@ +{ + "nodes": { + "impurity": { + "locked": { + "lastModified": 1689836741, + "narHash": "sha256-82KeRg2sAqDXCdzVs8P8GoqVaPsZjkWgrfsj6kgOLTY=", + "owner": "outfoxxed", + "repo": "impurity.nix", + "rev": "bbc41b69ab5485cd55aa315d08cff865781d3913", + "type": "github" + }, + "original": { + "owner": "outfoxxed", + "repo": "impurity.nix", + "type": "github" + } + }, + "nixpkgs": { + "locked": { + "lastModified": 1753694789, + "narHash": "sha256-cKgvtz6fKuK1Xr5LQW/zOUiAC0oSQoA9nOISB0pJZqM=", + "owner": "NixOS", + "repo": "nixpkgs", + "rev": "dc9637876d0dcc8c9e5e22986b857632effeb727", + "type": "github" + }, + "original": { + "id": "nixpkgs", + "ref": "nixos-unstable", + "type": "indirect" + } + }, + "root": { + "inputs": { + "impurity": "impurity", + "nixpkgs": "nixpkgs" + } + } + }, + "root": "root", + "version": 7 +} diff --git a/flake.nix b/flake.nix new file mode 100644 index 0000000..8ec646d --- /dev/null +++ b/flake.nix @@ -0,0 +1,29 @@ +{ + nixConfig = { + experimental-features = [ + "nix-command" + "flakes" + "pipe-operators" + ]; + }; + + inputs = { + nixpkgs.url = "nixpkgs/nixos-unstable"; + impurity.url = "github:outfoxxed/impurity.nix"; + }; + + outputs = inputs @ { self, nixpkgs, ... }: let + specialArgs = { flake = self; inherit inputs; }; + in { + nixosConfigurations = { + lappy = nixpkgs.lib.nixosSystem { + system = "x86_64-linux"; + inherit specialArgs; + + modules = [ + ./allsystems.nix + ]; + }; + }; + }; +}