diff --git a/flake.lock b/flake.lock index c4e327f..f823027 100644 --- a/flake.lock +++ b/flake.lock @@ -179,6 +179,21 @@ } }, "flake-compat_3": { + "locked": { + "lastModified": 1747046372, + "narHash": "sha256-CIVLLkVgvHYbgI2UpXvIIBJ12HWgX+fjA8Xf8PUmqCY=", + "owner": "edolstra", + "repo": "flake-compat", + "rev": "9100a0f413b0c601e0533d1d94ffd501ce2e7885", + "type": "github" + }, + "original": { + "owner": "edolstra", + "repo": "flake-compat", + "type": "github" + } + }, + "flake-compat_4": { "flake": false, "locked": { "lastModified": 1717312683, @@ -194,7 +209,7 @@ "type": "github" } }, - "flake-compat_4": { + "flake-compat_5": { "flake": false, "locked": { "lastModified": 1696426674, @@ -370,6 +385,49 @@ "type": "gitlab" } }, + "nix-alien": { + "inputs": { + "flake-compat": "flake-compat_3", + "nix-index-database": "nix-index-database", + "nixpkgs": [ + "nixpkgs" + ] + }, + "locked": { + "lastModified": 1747293822, + "narHash": "sha256-1R3Ro+RQCUUnIFZDObP9/2QBLk3xvgbXU67Qii+YZ8s=", + "owner": "thiagokokada", + "repo": "nix-alien", + "rev": "ea7eb3a76520fa8d92879afb819756ffc0bc629e", + "type": "github" + }, + "original": { + "owner": "thiagokokada", + "repo": "nix-alien", + "type": "github" + } + }, + "nix-index-database": { + "inputs": { + "nixpkgs": [ + "nix-alien", + "nixpkgs" + ] + }, + "locked": { + "lastModified": 1746934494, + "narHash": "sha256-3n6i+F0sDASjkhbvgFDpPDZGp7z19IrRtjfF9TwJpCA=", + "owner": "nix-community", + "repo": "nix-index-database", + "rev": "e9b21b01e4307176b9718a29ac514838e7f6f4ff", + "type": "github" + }, + "original": { + "owner": "nix-community", + "repo": "nix-index-database", + "type": "github" + } + }, "nixlib": { "locked": { "lastModified": 1643502816, @@ -387,7 +445,7 @@ }, "nixos-cosmic": { "inputs": { - "flake-compat": "flake-compat_3", + "flake-compat": "flake-compat_4", "nixpkgs": [ "nixpkgs" ], @@ -511,7 +569,7 @@ }, "pre-commit-hooks": { "inputs": { - "flake-compat": "flake-compat_4", + "flake-compat": "flake-compat_5", "gitignore": "gitignore", "nixpkgs": [ "nixpkgs" @@ -542,6 +600,7 @@ "flake-utils": "flake-utils_2", "home-manager": "home-manager_2", "matrix-appservices": "matrix-appservices", + "nix-alien": "nix-alien", "nixos-cosmic": "nixos-cosmic", "nixos-hardware": "nixos-hardware", "nixpkgs": "nixpkgs", diff --git a/flake.nix b/flake.nix index bb05b10..5e0770a 100644 --- a/flake.nix +++ b/flake.nix @@ -28,6 +28,11 @@ rec { flake-utils.url = "github:numtide/flake-utils"; + nix-alien = { + url = "github:thiagokokada/nix-alien"; + inputs.nixpkgs.follows = "nixpkgs"; + }; + home-manager = { url = "github:nix-community/home-manager/release-24.11"; inputs.nixpkgs.follows = "nixpkgs"; diff --git a/system/common.nix b/system/common.nix index c7202db..2d8bded 100644 --- a/system/common.nix +++ b/system/common.nix @@ -5,6 +5,7 @@ ./zram.nix ./i18n.nix ./nix.nix + ./nix-ld.nix ./networking.nix ./hardened.nix ]; diff --git a/system/nix-ld.nix b/system/nix-ld.nix new file mode 100644 index 0000000..caaab62 --- /dev/null +++ b/system/nix-ld.nix @@ -0,0 +1,9 @@ +{ inputs, system, ... }: + +{ + environment.systemPackages = [ + inputs.nix-alien.packages.${system}.nix-alien + ]; + + programs.nix-ld.enable = true; +}