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 .nobackup
.direnv/

View file

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

View file

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

View file

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

View file

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