Direnv and allow unfree

This commit is contained in:
pazpi 2025-09-29 18:30:30 +02:00
parent c2eb0ec788
commit 8e2b3e3a28
6 changed files with 24 additions and 16 deletions

5
.envrc Normal file
View file

@ -0,0 +1,5 @@
use flake
if [ -f .env ]; then
dotenv .env
fi

1
.gitignore vendored
View file

@ -1 +1,2 @@
.nobackup
.direnv/

View file

@ -74,9 +74,7 @@
devShells.${system}.default = pkgs.mkShell {
buildInputs = with pkgs; [
cmake
pkg-config
meson
lazygit
agenix.packages.${system}.agenix
colmena.packages.${system}.colmena
];

View file

@ -45,6 +45,8 @@ in
programs = {
direnv.enable = true;
# For VSCode Remote Development
nix-ld.enable = true;

View file

@ -67,18 +67,18 @@ in
# # specialArgs = { };
# };
baseLXC = nixpkgs.lib.nixosSystem {
pkgs = pkgs "x86_64-linux";
modules = [
nodeBaseModules
proxmoxModule
./base-lxc.nix
agenix.nixosModules.default
];
specialArgs = {
inherit self;
};
};
# baseLXC = nixpkgs.lib.nixosSystem {
# pkgs = pkgs "x86_64-linux";
# modules = [
# nodeBaseModules
# proxmoxModule
# ./base-lxc.nix
# agenix.nixosModules.default
# ];
# specialArgs = {
# inherit self;
# };
# };
arr = nixpkgs.lib.nixosSystem {
pkgs = pkgs "x86_64-linux";
@ -157,7 +157,7 @@ in
# specialArgs = { };
};
authentik = nixpkgs.lib.nixosSystem {
authentik = nixpkgs-unstable.lib.nixosSystem {
pkgs = pkgs-unstable "x86_64-linux";
modules = [
nodeBaseModules

View file

@ -5,9 +5,11 @@ let
in
{
meta = {
# Configuration used by colmena to build
nixpkgs = import inputs.nixpkgs {
system = "x86_64-linux";
overlays = [ ];
config.allowUnfree = true;
};
nodeNixpkgs = builtins.mapAttrs (_: v: v.pkgs) inputs.self.nixosConfigurations;
nodeSpecialArgs = builtins.mapAttrs (_: v: v._module.specialArgs) inputs.self.nixosConfigurations;