Update user config

This commit is contained in:
Gabriel Arazas 2020-08-07 01:57:53 +08:00
parent 19674fe7d2
commit 175e4366e6
2 changed files with 15 additions and 14 deletions

View File

@ -38,10 +38,13 @@ nixos-config
└── README.adoc
----
- The directory paid with the most attention would most likely be the `modules/` folder.
* The directory paid with the most attention would most likely be the `modules/` folder.
Each module (and submodule) can contain multiple modules for multiple programs (i.e., `modules/shell/git`, `modules/desktop/bspwm`).
It could also contain a `base.nix` file where Nix packages with no configurations are placed similar to Arch package groups (i.e., `base`, `base-devel`, `xfce`).
- The `config/` directory is simply the ad hoc configuration of several programs.
** Another folder worthy of attention is the `modules/themes` which sets up a complete desktop environment for you so you don't have to.
For safety, you should have a bare installation ala-Arch Linux.
* The `config/` directory is simply the ad hoc configuration of several programs.
In this case, it is my https://github.com/foo-dogsquared/dotflies[dotfiles] directory.

View File

@ -5,12 +5,6 @@
./modules
];
# Setting my personal public information.
# accounts.email.accounts."Gabriel Arazas" = {
# address = "christiangabrielarazas@gmail.com";
# aliases = [ "foo.dogsquared@gmail.com" ];
# };
nixpkgs.config = {
allowUnfree = true;
};
@ -40,13 +34,18 @@
shell = {
base.enable = true;
lf.enable = true;
git.enable = true;
git = {
enable = true;
config = {
userName = "Gabriel Arazas";
userEmail = "foo.dogsquared@gmail.com";
};
};
zsh.enable = true;
};
};
programs.git = lib.mkIf config.modules.shell.git.enable {
userName = "foo-dogsquared";
userEmail = "christiangabrielarazas@gmail.com";
programs.git = {
};
# Additional programs that doesn't need much configuration (or at least personally configured).
@ -55,8 +54,7 @@
# cookiecutter # A generic project scaffolding tool.
# ];
# Home Manager needs a bit of information about you and the
# paths it should manage.
# Home Manager needs a bit of information about you and the paths it should manage.
home.username = "foo-dogsquared";
home.homeDirectory = "/home/foo-dogsquared";