Add nixPath and sops-nix

This commit is contained in:
Lgmrszd 2024-01-21 21:53:13 +03:00
parent 4af5fb4bcb
commit 86c49e2ac6
No known key found for this signature in database
GPG key ID: 9396B8BA6FBB14DE
6 changed files with 95 additions and 2 deletions

View file

@ -4,6 +4,10 @@
{ config, pkgs, pkgs-stable, ... }:
let
nixPath = "/etc/nixPath";
in
{
# boot.kernelPackages = pkgs.linuxPackages_zen;
@ -274,8 +278,21 @@
nixpkgs.config.allowUnfree = true;
systemd.tmpfiles.rules = [
"L+ ${nixPath} - - - - ${pkgs.path}"
];
nix.settings.experimental-features = [ "nix-command" "flakes" ];
# nix.nixPath = []
nix.nixPath = [ "nixpkgs=${nixPath}" ];
nix.channel.enable = false;
# Sops
sops = {
defaultSopsFile = ../../secrets/secrets.yaml;
defaultSopsFormat = "yaml";
secrets.example_key = {};
gnupg.home = "/home/lgm/.gnupg";
};
# OnlyKey
hardware.onlykey.enable = true;