Add nix-ld & envfs

- nix-ld
  enables running unpatched binaries, see
  https://github.com/Mic92/nix-ld#usage
  for details

- envfs
  enables running standart #!/usr/bin/shebang scripts through nix magic
This commit is contained in:
Tristan D. 2023-10-05 13:07:09 +02:00
parent a2f5762421
commit 27ebd92fa2
Signed by: tristan
SSH key fingerprint: SHA256:U7y6eMb7CQDaTHv9XoX6/BaQnPqyxxKc+Xnfcefi6rY
3 changed files with 93 additions and 17 deletions

View file

@ -184,6 +184,8 @@
wget wget
]; ];
programs.nix-ld.dev.enable = true;
programs.command-not-found.enable = false; programs.command-not-found.enable = false;
programs.nix-index-database.comma.enable = true; programs.nix-index-database.comma.enable = true;
programs.dconf.enable = true; programs.dconf.enable = true;

94
flake.lock generated
View file

@ -7,11 +7,11 @@
] ]
}, },
"locked": { "locked": {
"lastModified": 1696266752, "lastModified": 1696468923,
"narHash": "sha256-wJnMDFM21+xXdsXSs6pXMElbv4YfqmQslcPApRuaYKs=", "narHash": "sha256-qSM7NKgf8LcZ5hjKHZ8ANFI8+LQivvAypbhJHBJmYFM=",
"owner": "nix-community", "owner": "nix-community",
"repo": "disko", "repo": "disko",
"rev": "646ee25c25fffee122a66282861f5f56ad3e0fd9", "rev": "cde886a1c97ef2399b4f91409db045785020291f",
"type": "github" "type": "github"
}, },
"original": { "original": {
@ -29,11 +29,11 @@
"nixpkgs-stable": "nixpkgs-stable" "nixpkgs-stable": "nixpkgs-stable"
}, },
"locked": { "locked": {
"lastModified": 1696410469, "lastModified": 1696501026,
"narHash": "sha256-N8gQTrqQVW+d3bUcWKkfKPKvctMH3SzkzkFtysruPc4=", "narHash": "sha256-hC+GuCi3HfuOoubS7gMPr2xHCBN33N07QfkFFEbhr8M=",
"owner": "nix-community", "owner": "nix-community",
"repo": "emacs-overlay", "repo": "emacs-overlay",
"rev": "61ba9eca21db0a7e8a6471d11f3f6f74b79a70ba", "rev": "5eba7d96a70b1aad7918b07a4f6563362a8255b7",
"type": "github" "type": "github"
}, },
"original": { "original": {
@ -42,6 +42,27 @@
"type": "github" "type": "github"
} }
}, },
"envfs": {
"inputs": {
"flake-parts": "flake-parts",
"nixpkgs": [
"nixpkgs"
]
},
"locked": {
"lastModified": 1695079619,
"narHash": "sha256-GFBzUelGFyiJ+TpRsKU5Hl6UOpq/BEoDjS4Q07hABs8=",
"owner": "Mic92",
"repo": "envfs",
"rev": "41c183cea42976aa98b26fe5456308b20b75c645",
"type": "github"
},
"original": {
"owner": "Mic92",
"repo": "envfs",
"type": "github"
}
},
"flake-compat": { "flake-compat": {
"flake": false, "flake": false,
"locked": { "locked": {
@ -74,6 +95,27 @@
"type": "github" "type": "github"
} }
}, },
"flake-parts": {
"inputs": {
"nixpkgs-lib": [
"envfs",
"nixpkgs"
]
},
"locked": {
"lastModified": 1673362319,
"narHash": "sha256-Pjp45Vnj7S/b3BRpZEVfdu8sqqA6nvVjvYu59okhOyI=",
"owner": "hercules-ci",
"repo": "flake-parts",
"rev": "82c16f1682cf50c01cb0280b38a1eed202b3fe9f",
"type": "github"
},
"original": {
"owner": "hercules-ci",
"repo": "flake-parts",
"type": "github"
}
},
"flake-utils": { "flake-utils": {
"inputs": { "inputs": {
"systems": "systems" "systems": "systems"
@ -170,6 +212,26 @@
"type": "github" "type": "github"
} }
}, },
"nix-ld": {
"inputs": {
"nixpkgs": [
"nixpkgs"
]
},
"locked": {
"lastModified": 1686849676,
"narHash": "sha256-+z9t7BLugZO1WhyYEq6FI38TMh2EwfgfAv3RDFSjwtc=",
"owner": "Mic92",
"repo": "nix-ld",
"rev": "3abd605e56b5b34ec630bb10ba85f98c93cc05b2",
"type": "github"
},
"original": {
"owner": "Mic92",
"repo": "nix-ld",
"type": "github"
}
},
"nix-wallpaper": { "nix-wallpaper": {
"inputs": { "inputs": {
"flake-utils": "flake-utils_2", "flake-utils": "flake-utils_2",
@ -194,11 +256,11 @@
}, },
"nixpkgs": { "nixpkgs": {
"locked": { "locked": {
"lastModified": 1696323343, "lastModified": 1696374741,
"narHash": "sha256-u7WLUrh5eb+6SBYwtkaGL2ryHpLcHzmLml+a+VqKJWE=", "narHash": "sha256-gt8B3G0ryizT9HSB4cCO8QoxdbsHnrQH+/BdKxOwqF0=",
"owner": "NixOS", "owner": "NixOS",
"repo": "nixpkgs", "repo": "nixpkgs",
"rev": "3b79cc4bcd9c09b5aa68ea1957c25e437dc6bc58", "rev": "8a4c17493e5c39769f79117937c79e1c88de6729",
"type": "github" "type": "github"
}, },
"original": { "original": {
@ -210,11 +272,11 @@
}, },
"nixpkgs-stable": { "nixpkgs-stable": {
"locked": { "locked": {
"lastModified": 1696323343, "lastModified": 1696374741,
"narHash": "sha256-u7WLUrh5eb+6SBYwtkaGL2ryHpLcHzmLml+a+VqKJWE=", "narHash": "sha256-gt8B3G0ryizT9HSB4cCO8QoxdbsHnrQH+/BdKxOwqF0=",
"owner": "NixOS", "owner": "NixOS",
"repo": "nixpkgs", "repo": "nixpkgs",
"rev": "3b79cc4bcd9c09b5aa68ea1957c25e437dc6bc58", "rev": "8a4c17493e5c39769f79117937c79e1c88de6729",
"type": "github" "type": "github"
}, },
"original": { "original": {
@ -258,11 +320,11 @@
}, },
"nur": { "nur": {
"locked": { "locked": {
"lastModified": 1696421792, "lastModified": 1696499135,
"narHash": "sha256-fhx7rQoL0rbupNRcNbTQSOxJ7sU6vpug+og2f9z1FDw=", "narHash": "sha256-/TcM0bZ+/FYJD5EEgdDC7JIYsf8TUp7GWryTcgBitrw=",
"owner": "nix-community", "owner": "nix-community",
"repo": "NUR", "repo": "NUR",
"rev": "4ca4be389a0c04cf9b41a554f9d3b3cea7a5b68a", "rev": "ef0505cd640f2db6565ad8231ab087cd17da7baa",
"type": "github" "type": "github"
}, },
"original": { "original": {
@ -326,8 +388,10 @@
"inputs": { "inputs": {
"disko": "disko", "disko": "disko",
"emacs-overlay": "emacs-overlay", "emacs-overlay": "emacs-overlay",
"envfs": "envfs",
"home-manager": "home-manager", "home-manager": "home-manager",
"nix-index-database": "nix-index-database", "nix-index-database": "nix-index-database",
"nix-ld": "nix-ld",
"nix-wallpaper": "nix-wallpaper", "nix-wallpaper": "nix-wallpaper",
"nixpkgs": "nixpkgs", "nixpkgs": "nixpkgs",
"nur": "nur", "nur": "nur",

View file

@ -46,6 +46,14 @@
inputs.nixpkgs.follows = "nixpkgs"; inputs.nixpkgs.follows = "nixpkgs";
inputs.home-manager.follows = "home-manager"; inputs.home-manager.follows = "home-manager";
}; };
envfs = {
url = "github:Mic92/envfs";
inputs.nixpkgs.follows = "nixpkgs";
};
nix-ld = {
url = "github:Mic92/nix-ld";
inputs.nixpkgs.follows = "nixpkgs";
};
}; };
outputs = inputs: let outputs = inputs: let
@ -86,10 +94,12 @@
./users.nix ./users.nix
./disko.nix ./disko.nix
inputs.disko.nixosModules.disko inputs.disko.nixosModules.disko
inputs.envfs.nixosModules.envfs
inputs.home-manager.nixosModules.home-manager inputs.home-manager.nixosModules.home-manager
inputs.tuxedo-nixos.nixosModules.default
inputs.nur.nixosModules.nur
inputs.nix-index-database.nixosModules.nix-index inputs.nix-index-database.nixosModules.nix-index
inputs.nix-ld.nixosModules.nix-ld
inputs.nur.nixosModules.nur
inputs.tuxedo-nixos.nixosModules.default
{ {
_module.args.customPkgs = customPkgs; _module.args.customPkgs = customPkgs;
_module.args.inputs = inputs; _module.args.inputs = inputs;