mirror of
https://github.com/itme-brain/nixos.git
synced 2026-03-24 00:29:43 -04:00
big
This commit is contained in:
parent
a9bd04ae6e
commit
81e9c24fb7
4 changed files with 11 additions and 8 deletions
|
|
@ -2,12 +2,13 @@
|
|||
|
||||
with lib;
|
||||
let cfg = config.modules.git;
|
||||
isBryan = config.user.name == "bryan";
|
||||
|
||||
in
|
||||
{ options.modules.git = { enable = mkEnableOption "git"; };
|
||||
config = mkIf cfg.enable {
|
||||
programs = {
|
||||
git = import ./config/git.nix;
|
||||
git = if isBryan then import ./config/git.nix else { enable = true; };
|
||||
gh = {
|
||||
enable = true;
|
||||
settings.git_protocol = "ssh";
|
||||
|
|
|
|||
|
|
@ -1,19 +1,21 @@
|
|||
{ lib, config, ... }:
|
||||
|
||||
with lib;
|
||||
let cfg = config.modules.gpg;
|
||||
let
|
||||
cfg = config.modules.gpg;
|
||||
isBryan = config.user.name == "bryan";
|
||||
|
||||
in
|
||||
in
|
||||
{ options.modules.gpg = { enable = mkEnableOption "gpg"; };
|
||||
config = mkIf cfg.enable {
|
||||
programs.gpg = {
|
||||
enable = true;
|
||||
publicKeys = [
|
||||
publicKeys = if isBryan then [
|
||||
{
|
||||
text = import ./config/pubKey.nix;
|
||||
trust = 5;
|
||||
}
|
||||
];
|
||||
] else [];
|
||||
};
|
||||
|
||||
services.gpg-agent = {
|
||||
|
|
|
|||
|
|
@ -1,10 +1,10 @@
|
|||
{ pkgs, lib, config, ... }:
|
||||
|
||||
with lib;
|
||||
let
|
||||
let
|
||||
cfg = config.modules.neovim;
|
||||
|
||||
in
|
||||
in
|
||||
{ options.modules.neovim = { enable = mkEnableOption "neovim"; };
|
||||
config = mkIf cfg.enable {
|
||||
programs.neovim = {
|
||||
|
|
|
|||
|
|
@ -8,7 +8,7 @@
|
|||
extraOptions = "experimental-features = nix-command flakes";
|
||||
settings = {
|
||||
auto-optimise-store = true;
|
||||
trusted-users = [ "bryan" ];
|
||||
trusted-users = [ "${config.user.name}" ];
|
||||
};
|
||||
gc = {
|
||||
automatic = true;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue