Do not install my git config on neelix.
This commit is contained in:
parent
509cceb220
commit
b37f8a8e1a
@ -37,6 +37,7 @@
|
|||||||
me.docker.enable = true;
|
me.docker.enable = true;
|
||||||
me.emacs_flavor = "full";
|
me.emacs_flavor = "full";
|
||||||
me.firefox.enable = true;
|
me.firefox.enable = true;
|
||||||
|
me.git.config = ./roles/git/files/gitconfig_home;
|
||||||
me.graphical = true;
|
me.graphical = true;
|
||||||
me.graphics_card_type = "amd";
|
me.graphics_card_type = "amd";
|
||||||
me.sway.enable = true;
|
me.sway.enable = true;
|
||||||
|
@ -8,15 +8,31 @@
|
|||||||
{
|
{
|
||||||
imports = [ ];
|
imports = [ ];
|
||||||
|
|
||||||
environment.systemPackages = with pkgs; [
|
options.me = {
|
||||||
git
|
git.config = lib.mkOption {
|
||||||
];
|
type = lib.types.nullOr lib.types.path;
|
||||||
|
default = null;
|
||||||
home-manager.users.talexander =
|
example = ./files/gitconfig_home;
|
||||||
{ pkgs, ... }:
|
description = "A git config file.";
|
||||||
{
|
|
||||||
home.file.".gitconfig" = {
|
|
||||||
source = ./files/gitconfig_home;
|
|
||||||
};
|
|
||||||
};
|
};
|
||||||
|
};
|
||||||
|
|
||||||
|
config = lib.mkMerge [
|
||||||
|
{
|
||||||
|
environment.systemPackages = with pkgs; [
|
||||||
|
git
|
||||||
|
];
|
||||||
|
}
|
||||||
|
(
|
||||||
|
lib.mkIf config.me.git.config != null {
|
||||||
|
home-manager.users.talexander =
|
||||||
|
{ pkgs, ... }:
|
||||||
|
{
|
||||||
|
home.file.".gitconfig" = {
|
||||||
|
source = config.me.git.config;
|
||||||
|
};
|
||||||
|
};
|
||||||
|
}
|
||||||
|
)
|
||||||
|
];
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user