diff --git a/flake.lock b/flake.lock index a9c157e..9785923 100644 --- a/flake.lock +++ b/flake.lock @@ -162,7 +162,7 @@ }, "flake-utils_3": { "inputs": { - "systems": "systems_3" + "systems": "systems_4" }, "locked": { "lastModified": 1681202837, @@ -238,11 +238,11 @@ "rust-overlay": "rust-overlay" }, "locked": { - "lastModified": 1724614030, - "narHash": "sha256-B6zj13s17m+LeXW8MrN2wRH3gQuVuA6+3PaDdhenPW0=", + "lastModified": 1724856988, + "narHash": "sha256-JBLe2CxAhG+J8+x8qmbzkGHNYmGcSiuY2QO4Zhb72lI=", "owner": "helix-editor", "repo": "helix", - "rev": "af7a1fd20c0a2915e0dae1b5bea7cb6bde6c2746", + "rev": "1b5295a3f3d7cccd96eed5bfd394807a4dae87fc", "type": "github" }, "original": { @@ -291,11 +291,11 @@ "lix": { "flake": false, "locked": { - "lastModified": 1724816427, - "narHash": "sha256-j/ma58x680RD8k9YGDGgj6qx/3b2qaZOBdyr0My7ik0=", - "rev": "5d31e889d7f3310cb030e85adcfd3ce64846457d", + "lastModified": 1725228396, + "narHash": "sha256-QBXwqyPuHUKBiuyzHBxqH/MpjPY9DQiY2M81P2t6b/0=", + "rev": "02eb07cfd539c34c080cb1baf042e5e780c1fcc2", "type": "tarball", - "url": "https://git.lix.systems/api/v1/repos/lix-project/lix/archive/5d31e889d7f3310cb030e85adcfd3ce64846457d.tar.gz?rev=5d31e889d7f3310cb030e85adcfd3ce64846457d" + "url": "https://git.lix.systems/api/v1/repos/lix-project/lix/archive/02eb07cfd539c34c080cb1baf042e5e780c1fcc2.tar.gz?rev=02eb07cfd539c34c080cb1baf042e5e780c1fcc2" }, "original": { "type": "tarball", @@ -354,29 +354,32 @@ "nixpkgs": [ "nixpkgs" ], - "src": "src" + "rust-overlay": [ + "rust-overlay" + ], + "utils": "utils" }, "locked": { - "lastModified": 1, - "narHash": "sha256-1ywc+oiC1ChEcMdWTDvJ+xIwvvdXII/ItbrxiCAIRek=", - "path": "flakes/meat", + "lastModified": 1725322213, + "narHash": "sha256-qK1dfFB5i0MpSy4O7M9EcBnMPWqkqoIFbAAwVdYtBfM=", + "path": "/home/bolt/code/meat", "type": "path" }, "original": { - "path": "flakes/meat", + "path": "/home/bolt/code/meat", "type": "path" } }, "nh": { "inputs": { - "nixpkgs": "nixpkgs_4" + "nixpkgs": "nixpkgs_2" }, "locked": { - "lastModified": 1724689275, - "narHash": "sha256-wpxC7XiZ9maYZA4BSLKGXc+pn2fwaiq2Ybu5kNjl1ao=", + "lastModified": 1725287741, + "narHash": "sha256-ZxyB7BwxQjoMz5lUnsb+KuTWfRyPtJVqEjnlOoABSUE=", "owner": "viperML", "repo": "nh", - "rev": "a922eada049854019c5d1bbc82383f7095773e5c", + "rev": "5dd64eb04fddeac2eb08c018212cc58978934920", "type": "github" }, "original": { @@ -387,14 +390,14 @@ }, "nix-index-database": { "inputs": { - "nixpkgs": "nixpkgs_5" + "nixpkgs": "nixpkgs_3" }, "locked": { - "lastModified": 1724576102, - "narHash": "sha256-uM7n5nNL6fmA0bwMJBNll11f4cMWOFa2Ni6F5KeIldM=", + "lastModified": 1725161148, + "narHash": "sha256-WfAHq3Ag3vLNFfWxKHjFBFdPI6JIideWFJod9mx1eoo=", "owner": "Mic92", "repo": "nix-index-database", - "rev": "e333d62b70b179da1dd78d94315e8a390f2d12e5", + "rev": "32058e9138248874773630c846563b1a78ee7a5b", "type": "github" }, "original": { @@ -452,7 +455,7 @@ "inputs": { "flake-parts": "flake-parts", "flake-root": "flake-root", - "nixpkgs": "nixpkgs_7", + "nixpkgs": "nixpkgs_5", "treefmt-nix": "treefmt-nix" }, "locked": { @@ -473,16 +476,16 @@ "inputs": { "flake-compat": "flake-compat_3", "nix-update": "nix-update", - "nixpkgs": "nixpkgs_8", + "nixpkgs": "nixpkgs_6", "nixpkgs-stable": "nixpkgs-stable_2", - "rust-overlay": "rust-overlay_3" + "rust-overlay": "rust-overlay_2" }, "locked": { - "lastModified": 1724808932, - "narHash": "sha256-LwaEiwEyftMnoKuMMo3dT9HxktY5zzKDctybxGnX+kY=", + "lastModified": 1725237037, + "narHash": "sha256-rz7xUgTUHKvRsTFQocpespVloYpJ4tIsXmgU1fdXCPw=", "owner": "lilyinstarlight", "repo": "nixos-cosmic", - "rev": "305434fce8b341baa596d6a0d7ec7a3a8ac60893", + "rev": "27ca5fbf0f51d3f02bb0274b0ce9012e5c079fe9", "type": "github" }, "original": { @@ -558,11 +561,11 @@ }, "nixpkgs-stable_2": { "locked": { - "lastModified": 1724531977, - "narHash": "sha256-XROVLf9ti4rrNCFLr+DmXRZtPjCQTW4cYy59owTEmxk=", + "lastModified": 1725001927, + "narHash": "sha256-eV+63gK0Mp7ygCR0Oy4yIYSNcum2VQwnZamHxYTNi+M=", "owner": "NixOS", "repo": "nixpkgs", - "rev": "2527da1ef492c495d5391f3bcf9c1dd9f4514e32", + "rev": "6e99f2a27d600612004fbd2c3282d614bfee6421", "type": "github" }, "original": { @@ -574,40 +577,11 @@ }, "nixpkgs_2": { "locked": { - "lastModified": 1724224976, - "narHash": "sha256-Z/ELQhrSd7bMzTO8r7NZgi9g5emh+aRKoCdaAv5fiO0=", - "path": "/nix/store/j8pbrsb3nybdap3hhg9kw0ffqd4rlbx6-source", - "rev": "c374d94f1536013ca8e92341b540eba4c22f9c62", - "type": "path" - }, - "original": { - "id": "nixpkgs", - "type": "indirect" - } - }, - "nixpkgs_3": { - "locked": { - "lastModified": 1718428119, - "narHash": "sha256-WdWDpNaq6u1IPtxtYHHWpl5BmabtpmLnMAx0RdJ/vo8=", + "lastModified": 1725001927, + "narHash": "sha256-eV+63gK0Mp7ygCR0Oy4yIYSNcum2VQwnZamHxYTNi+M=", "owner": "NixOS", "repo": "nixpkgs", - "rev": "e6cea36f83499eb4e9cd184c8a8e823296b50ad5", - "type": "github" - }, - "original": { - "owner": "NixOS", - "ref": "nixpkgs-unstable", - "repo": "nixpkgs", - "type": "github" - } - }, - "nixpkgs_4": { - "locked": { - "lastModified": 1722519197, - "narHash": "sha256-VEdJmVU2eLFtLqCjTYJd1J7+Go8idAcZoT11IewFiRg=", - "owner": "NixOS", - "repo": "nixpkgs", - "rev": "05405724efa137a0b899cce5ab4dde463b4fd30b", + "rev": "6e99f2a27d600612004fbd2c3282d614bfee6421", "type": "github" }, "original": { @@ -617,13 +591,13 @@ "type": "github" } }, - "nixpkgs_5": { + "nixpkgs_3": { "locked": { - "lastModified": 1724224976, - "narHash": "sha256-Z/ELQhrSd7bMzTO8r7NZgi9g5emh+aRKoCdaAv5fiO0=", + "lastModified": 1724819573, + "narHash": "sha256-GnR7/ibgIH1vhoy8cYdmXE6iyZqKqFxQSVkFgosBh6w=", "owner": "NixOS", "repo": "nixpkgs", - "rev": "c374d94f1536013ca8e92341b540eba4c22f9c62", + "rev": "71e91c409d1e654808b2621f28a327acfdad8dc2", "type": "github" }, "original": { @@ -633,7 +607,7 @@ "type": "github" } }, - "nixpkgs_6": { + "nixpkgs_4": { "locked": { "lastModified": 1681303793, "narHash": "sha256-JEdQHsYuCfRL2PICHlOiH/2ue3DwoxUX7DJ6zZxZXFk=", @@ -649,7 +623,7 @@ "type": "github" } }, - "nixpkgs_7": { + "nixpkgs_5": { "locked": { "lastModified": 1714562304, "narHash": "sha256-Mr3U37Rh6tH0FbaDFu0aZDwk9mPAe7ASaqDOGgLqqLU=", @@ -665,13 +639,13 @@ "type": "github" } }, - "nixpkgs_8": { + "nixpkgs_6": { "locked": { - "lastModified": 1724479785, - "narHash": "sha256-pP3Azj5d6M5nmG68Fu4JqZmdGt4S4vqI5f8te+E/FTw=", + "lastModified": 1724819573, + "narHash": "sha256-GnR7/ibgIH1vhoy8cYdmXE6iyZqKqFxQSVkFgosBh6w=", "owner": "NixOS", "repo": "nixpkgs", - "rev": "d0e1602ddde669d5beb01aec49d71a51937ed7be", + "rev": "71e91c409d1e654808b2621f28a327acfdad8dc2", "type": "github" }, "original": { @@ -683,11 +657,11 @@ }, "nur": { "locked": { - "lastModified": 1724817867, - "narHash": "sha256-p8aM1WJtFcFYNi2j7uJWrZGKKuurORoZRY53ueLz8qk=", + "lastModified": 1725321983, + "narHash": "sha256-k+f0FddjJX4mkEx0he7sLT2yYHv4dVmf63YH6zSbIWo=", "owner": "nix-community", "repo": "NUR", - "rev": "6f0c6f6946e4197e9bb278e2b72a1ce486ea6238", + "rev": "03d44a70b0d8113225a167c9f1751ad5b4c09481", "type": "github" }, "original": { @@ -704,7 +678,7 @@ "flake-utils" ], "gitignore": "gitignore", - "nixpkgs": "nixpkgs_6", + "nixpkgs": "nixpkgs_4", "nixpkgs-stable": "nixpkgs-stable" }, "locked": { @@ -772,22 +746,6 @@ } }, "rust-overlay_2": { - "inputs": { - "nixpkgs": "nixpkgs_3" - }, - "locked": { - "lastModified": 1724466314, - "narHash": "sha256-ltKuK6shQ64uej1mYNtBsDYxttUNFiv9AcHqk0+0NQM=", - "path": "/nix/store/gsif96m93kai5bx7qi0v9f9451q1b1ai-source", - "rev": "2b5b3edd96ef336b00622dcabc13788fdef9e3ca", - "type": "path" - }, - "original": { - "id": "rust-overlay", - "type": "indirect" - } - }, - "rust-overlay_3": { "inputs": { "nixpkgs": [ "nixos-cosmic", @@ -795,11 +753,11 @@ ] }, "locked": { - "lastModified": 1724725307, - "narHash": "sha256-gnu8JrUFQoy7b927EPuwmWpvk8MSroFl07pplmVueYA=", + "lastModified": 1724984647, + "narHash": "sha256-BC6MUq0CTdmAu/cueVcdWTI+S95s0mJcn19SoEgd7gU=", "owner": "oxalica", "repo": "rust-overlay", - "rev": "f56076b216c266cd855b0811ceb86802e834cdb9", + "rev": "87b6cffc276795b46ef544d7ed8d7fed6ad9c8e4", "type": "github" }, "original": { @@ -808,22 +766,6 @@ "type": "github" } }, - "src": { - "inputs": { - "nixpkgs": "nixpkgs_2", - "rust-overlay": "rust-overlay_2" - }, - "locked": { - "lastModified": 1724817482, - "narHash": "sha256-ZVu7hWi8u8roZkHOeRAkDMkXlyIHvoQgb6UTUfP+xyk=", - "path": "/home/bolt/code/meat", - "type": "path" - }, - "original": { - "path": "/home/bolt/code/meat", - "type": "path" - } - }, "systems": { "locked": { "lastModified": 1681028828, @@ -869,6 +811,21 @@ "type": "github" } }, + "systems_4": { + "locked": { + "lastModified": 1681028828, + "narHash": "sha256-Vy1rq5AaRuLzOxct8nz4T6wlgyUR7zLU309k9mBC768=", + "owner": "nix-systems", + "repo": "default", + "rev": "da67096a3b9bf56a91d16901293e51ba5b49a27e", + "type": "github" + }, + "original": { + "owner": "nix-systems", + "repo": "default", + "type": "github" + } + }, "treefmt-nix": { "inputs": { "nixpkgs": [ @@ -911,6 +868,24 @@ "repo": "treefmt-nix", "type": "github" } + }, + "utils": { + "inputs": { + "systems": "systems_3" + }, + "locked": { + "lastModified": 1710146030, + "narHash": "sha256-SZ5L6eA7HJ/nmkzGG7/ISclqe6oZdOZTNoesiInkXPQ=", + "owner": "numtide", + "repo": "flake-utils", + "rev": "b1d9ab70662946ef0850d488da1c9019f3a9752a", + "type": "github" + }, + "original": { + "owner": "numtide", + "repo": "flake-utils", + "type": "github" + } } }, "root": "root", diff --git a/flake.nix b/flake.nix index ce0f4fe..486583d 100644 --- a/flake.nix +++ b/flake.nix @@ -47,11 +47,12 @@ }; meat = { - url = "path:flakes/meat"; + url = "path:/home/bolt/code/meat"; inputs.nixpkgs.follows = "nixpkgs"; inputs.lix.follows = "lix"; inputs.lix-module.follows = "lix-module"; inputs.nh.follows = "nh"; + inputs.rust-overlay.follows = "rust-overlay"; }; }; diff --git a/flakes/meat/flake.lock b/flakes/meat/flake.lock deleted file mode 100644 index 3dfbca5..0000000 --- a/flakes/meat/flake.lock +++ /dev/null @@ -1,210 +0,0 @@ -{ - "nodes": { - "flake-utils": { - "inputs": { - "systems": "systems" - }, - "locked": { - "lastModified": 1710146030, - "narHash": "sha256-SZ5L6eA7HJ/nmkzGG7/ISclqe6oZdOZTNoesiInkXPQ=", - "owner": "numtide", - "repo": "flake-utils", - "rev": "b1d9ab70662946ef0850d488da1c9019f3a9752a", - "type": "github" - }, - "original": { - "owner": "numtide", - "repo": "flake-utils", - "type": "github" - } - }, - "flakey-profile": { - "locked": { - "lastModified": 1712898590, - "narHash": "sha256-FhGIEU93VHAChKEXx905TSiPZKga69bWl1VB37FK//I=", - "owner": "lf-", - "repo": "flakey-profile", - "rev": "243c903fd8eadc0f63d205665a92d4df91d42d9d", - "type": "github" - }, - "original": { - "owner": "lf-", - "repo": "flakey-profile", - "type": "github" - } - }, - "lix": { - "flake": false, - "locked": { - "lastModified": 1724816427, - "narHash": "sha256-j/ma58x680RD8k9YGDGgj6qx/3b2qaZOBdyr0My7ik0=", - "rev": "5d31e889d7f3310cb030e85adcfd3ce64846457d", - "type": "tarball", - "url": "https://git.lix.systems/api/v1/repos/lix-project/lix/archive/5d31e889d7f3310cb030e85adcfd3ce64846457d.tar.gz?rev=5d31e889d7f3310cb030e85adcfd3ce64846457d" - }, - "original": { - "type": "tarball", - "url": "https://git.lix.systems/lix-project/lix/archive/main.tar.gz" - } - }, - "lix-module": { - "inputs": { - "flake-utils": "flake-utils", - "flakey-profile": "flakey-profile", - "lix": [ - "lix" - ], - "nixpkgs": [ - "nixpkgs" - ] - }, - "locked": { - "lastModified": 1723511483, - "narHash": "sha256-rT/OkVXKkns2YvyF1nFvl+8Gc3sld1c1sXPtGkbqaDY=", - "rev": "cecf70b77539c1a593f60ec9d0305b5e537ab6a9", - "type": "tarball", - "url": "https://git.lix.systems/api/v1/repos/lix-project/nixos-module/archive/cecf70b77539c1a593f60ec9d0305b5e537ab6a9.tar.gz?rev=cecf70b77539c1a593f60ec9d0305b5e537ab6a9" - }, - "original": { - "type": "tarball", - "url": "https://git.lix.systems/lix-project/nixos-module/archive/main.tar.gz" - } - }, - "nh": { - "inputs": { - "nixpkgs": "nixpkgs" - }, - "locked": { - "lastModified": 1724689275, - "narHash": "sha256-wpxC7XiZ9maYZA4BSLKGXc+pn2fwaiq2Ybu5kNjl1ao=", - "owner": "viperML", - "repo": "nh", - "rev": "a922eada049854019c5d1bbc82383f7095773e5c", - "type": "github" - }, - "original": { - "owner": "viperML", - "repo": "nh", - "type": "github" - } - }, - "nixpkgs": { - "locked": { - "lastModified": 1722519197, - "narHash": "sha256-VEdJmVU2eLFtLqCjTYJd1J7+Go8idAcZoT11IewFiRg=", - "owner": "NixOS", - "repo": "nixpkgs", - "rev": "05405724efa137a0b899cce5ab4dde463b4fd30b", - "type": "github" - }, - "original": { - "owner": "NixOS", - "ref": "nixos-24.05", - "repo": "nixpkgs", - "type": "github" - } - }, - "nixpkgs_2": { - "locked": { - "lastModified": 1724479785, - "narHash": "sha256-pP3Azj5d6M5nmG68Fu4JqZmdGt4S4vqI5f8te+E/FTw=", - "owner": "NixOS", - "repo": "nixpkgs", - "rev": "d0e1602ddde669d5beb01aec49d71a51937ed7be", - "type": "github" - }, - "original": { - "id": "nixpkgs", - "ref": "nixos-unstable", - "type": "indirect" - } - }, - "nixpkgs_3": { - "locked": { - "lastModified": 1724224976, - "narHash": "sha256-Z/ELQhrSd7bMzTO8r7NZgi9g5emh+aRKoCdaAv5fiO0=", - "path": "/nix/store/j8pbrsb3nybdap3hhg9kw0ffqd4rlbx6-source", - "rev": "c374d94f1536013ca8e92341b540eba4c22f9c62", - "type": "path" - }, - "original": { - "id": "nixpkgs", - "type": "indirect" - } - }, - "nixpkgs_4": { - "locked": { - "lastModified": 1718428119, - "narHash": "sha256-WdWDpNaq6u1IPtxtYHHWpl5BmabtpmLnMAx0RdJ/vo8=", - "owner": "NixOS", - "repo": "nixpkgs", - "rev": "e6cea36f83499eb4e9cd184c8a8e823296b50ad5", - "type": "github" - }, - "original": { - "owner": "NixOS", - "ref": "nixpkgs-unstable", - "repo": "nixpkgs", - "type": "github" - } - }, - "root": { - "inputs": { - "lix": "lix", - "lix-module": "lix-module", - "nh": "nh", - "nixpkgs": "nixpkgs_2", - "src": "src" - } - }, - "rust-overlay": { - "inputs": { - "nixpkgs": "nixpkgs_4" - }, - "locked": { - "lastModified": 1724466314, - "narHash": "sha256-ltKuK6shQ64uej1mYNtBsDYxttUNFiv9AcHqk0+0NQM=", - "path": "/nix/store/gsif96m93kai5bx7qi0v9f9451q1b1ai-source", - "rev": "2b5b3edd96ef336b00622dcabc13788fdef9e3ca", - "type": "path" - }, - "original": { - "id": "rust-overlay", - "type": "indirect" - } - }, - "src": { - "inputs": { - "nixpkgs": "nixpkgs_3", - "rust-overlay": "rust-overlay" - }, - "locked": { - "lastModified": 1724817482, - "narHash": "sha256-ZVu7hWi8u8roZkHOeRAkDMkXlyIHvoQgb6UTUfP+xyk=", - "path": "/home/bolt/code/meat", - "type": "path" - }, - "original": { - "path": "/home/bolt/code/meat", - "type": "path" - } - }, - "systems": { - "locked": { - "lastModified": 1681028828, - "narHash": "sha256-Vy1rq5AaRuLzOxct8nz4T6wlgyUR7zLU309k9mBC768=", - "owner": "nix-systems", - "repo": "default", - "rev": "da67096a3b9bf56a91d16901293e51ba5b49a27e", - "type": "github" - }, - "original": { - "owner": "nix-systems", - "repo": "default", - "type": "github" - } - } - }, - "root": "root", - "version": 7 -} diff --git a/flakes/meat/flake.nix b/flakes/meat/flake.nix deleted file mode 100644 index b3622c2..0000000 --- a/flakes/meat/flake.nix +++ /dev/null @@ -1,54 +0,0 @@ -{ - description = "the meat (package) manager"; - - inputs = { - nixpkgs.url = "nixpkgs/nixos-unstable"; - - nh.url = "github:viperML/nh"; - - lix = { - url = "https://git.lix.systems/lix-project/lix/archive/main.tar.gz"; - flake = false; - }; - - lix-module = { - url = "https://git.lix.systems/lix-project/nixos-module/archive/main.tar.gz"; - inputs.nixpkgs.follows = "nixpkgs"; - inputs.lix.follows = "lix"; - }; - - src.url = "path:/home/bolt/code/meat"; - }; - - outputs = { - self, - nixpkgs, - lix-module, - nh, - src, - ... - }: let - pkgs = import nixpkgs { - overlays = [ - lix-module.overlays.default - nh.overlays.default - ]; - system = "x86_64-linux"; - }; - in { - # packages.meat = pkgs.callPackage ./meat.nix { - # inherit src; - # }; - packages.meat = src.packages.x86_64-linux.default; - - defaultPackage = self.packages.meat; - - overlays.meat = final: prev: { - meat = self.defaultPackage; - }; - - nixosModules.meat = import ./module.nix { - meatOverlay = self.overlays.meat; - }; - }; -} diff --git a/flakes/meat/meat-module.nix b/flakes/meat/meat-module.nix deleted file mode 100644 index 076bd60..0000000 --- a/flakes/meat/meat-module.nix +++ /dev/null @@ -1,28 +0,0 @@ -{ - pkgs, - lib, - config, - ... -}: let - inherit (lib) mkEnableOption mkOption types; - cfg = config.programs.meat; -in { - options.programs.meat = { - enable = mkEnableOption "meat"; - flake = mkOption { - type = with types; nullOr (either path str); - default = null; - description = "path to your system flake"; - }; - }; - config = - lib.mkIf - cfg.enable - { - environment.systemPackages = [pkgs.meat]; - environment.sessionVariables.FLAKE = - if (cfg.flake == null) - then abort "Please set the programs.meat.flake option to your system flake." - else config.programs.meat.flake; - }; -} diff --git a/flakes/meat/meat.nix b/flakes/meat/meat.nix deleted file mode 100644 index 918d50a..0000000 --- a/flakes/meat/meat.nix +++ /dev/null @@ -1,37 +0,0 @@ -{ - lib, - src, - stdenvNoCC, - bash, - lix, - nh, - git, - makeWrapper, -}: let - deps = [ - bash - lix - nh - git - ]; -in - stdenvNoCC.mkDerivation { - inherit src; - name = "meat"; - version = "0.0.1"; - nativeBuildInputs = [ - makeWrapper - ]; - buildInputs = deps; - installPhase = '' - mkdir -p $out/bin - cp meat $out/bin - ''; - postFixup = '' - wrapProgram $out/bin/meat \ - --set PATH /run/wrappers/bin:${lib.makeBinPath deps} - ''; - meta = { - mainProgram = "meat"; - }; - } diff --git a/flakes/meat/module.nix b/flakes/meat/module.nix deleted file mode 100644 index b4278c1..0000000 --- a/flakes/meat/module.nix +++ /dev/null @@ -1,4 +0,0 @@ -{meatOverlay}: { - imports = [./meat-module.nix]; - nixpkgs.overlays = [meatOverlay]; -} diff --git a/flakes/meat/old/src/meat b/flakes/meat/old/src/meat deleted file mode 100755 index 27ea39e..0000000 --- a/flakes/meat/old/src/meat +++ /dev/null @@ -1,69 +0,0 @@ -#!/usr/bin/env bash - -cmd=${1:help} -shift - -cd $FLAKE - -printf "\n----- MEAT -------------------------------------------\n\n" - -case $cmd in - - look) - nix flake info - ;; - - fresh) - if [[ "$1" == "-a" ]]; then - shift - all=true - else - all=false - fi - if [[ "${#@}" > 0 ]]; then - for f in $@; do - if [ -d "./flakes/$f" ]; then - printf "subflake: $f\n" - nix flake update --flake "./flakes/$f" - fi - done - elif $all; then - printf "updating all\n" - for f in ./flakes/*; do - printf "subflake: $f\n" - nix flake update --flake "$f" - done - fi - printf "updating system\n" - nix flake update - ;; - - gut) - nh clean all $@ - ;; - - yum) - nh os switch -- $@ - ;; - - cook) - nh os build $@ - ;; - - poke) - nh os build -- --show-trace $@ - ;; - - help|*) - printf "\tFRESH \t\t| GET LATEST MEAT -\tYUM \t\t| CONSUME DELICIOUS MEAT -\tCOOK \t\t| ONLY PREPARE MEAT -\tPOKE \t\t| TRY COOK SUSPICIOUS MEAT -\tGUT \t\t| CLEAN MEAT -\tLOOK \t\t| INSPECT MEATS\n" - ;; - -esac - -printf "\n------------------------------------------------------\n\n" -cd $PWD diff --git a/system/configuration.nix b/system/configuration.nix index 1544fff..ebce63d 100644 --- a/system/configuration.nix +++ b/system/configuration.nix @@ -26,7 +26,7 @@ registry = lib.mapAttrs (_: value: {flake = value;}) inputs; settings = { # trusted-users = ["bolt" "plank"]; - experimental-features = "nix-command flakes"; + experimental-features = ["nix-command" "flakes" "pipe-operator"]; substitute = true; }; extraOptions = ''