Modularize with numtide/blueprint
This commit is contained in:
parent
d0b1495ede
commit
5335a08eb5
17 changed files with 135 additions and 170 deletions
14
modules/home/base.nix
Normal file
14
modules/home/base.nix
Normal file
|
|
@ -0,0 +1,14 @@
|
|||
{
|
||||
|
||||
programs.bash.enable = true;
|
||||
|
||||
programs.fish = {
|
||||
enable = true;
|
||||
};
|
||||
|
||||
programs.helix = {
|
||||
enable = true;
|
||||
defaultEditor = true;
|
||||
};
|
||||
|
||||
}
|
||||
26
modules/home/git.nix
Normal file
26
modules/home/git.nix
Normal file
|
|
@ -0,0 +1,26 @@
|
|||
{ flake, ... }:
|
||||
{ config, ... }:
|
||||
{
|
||||
|
||||
imports = [ flake.homeModules.user ];
|
||||
|
||||
programs.git = {
|
||||
enable = true;
|
||||
settings = {
|
||||
user = config.user;
|
||||
};
|
||||
};
|
||||
|
||||
programs.jujutsu = {
|
||||
enable = true;
|
||||
settings = {
|
||||
user = config.user;
|
||||
ui.default-command = "log";
|
||||
};
|
||||
};
|
||||
|
||||
programs.gh = {
|
||||
enable = true;
|
||||
};
|
||||
|
||||
}
|
||||
17
modules/home/user.nix
Normal file
17
modules/home/user.nix
Normal file
|
|
@ -0,0 +1,17 @@
|
|||
{ lib, ... }:
|
||||
{
|
||||
|
||||
options.user = {
|
||||
name = lib.mkOption {
|
||||
type = lib.types.str;
|
||||
description = "User full name";
|
||||
default = "Julien Hémono";
|
||||
};
|
||||
email = lib.mkOption {
|
||||
type = lib.types.str;
|
||||
description = "User full name";
|
||||
default = "julien@hemono.fr";
|
||||
};
|
||||
};
|
||||
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue