mirror of
https://git.lgmrszd.xyz/Lgmrszd/nix-cfg.git
synced 2025-12-14 15:48:21 +01:00
Add nixPath and sops-nix
This commit is contained in:
parent
4af5fb4bcb
commit
86c49e2ac6
6 changed files with 95 additions and 2 deletions
|
|
@ -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;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue