nixos-config/users
Gabriel Arazas db5fc8269e Update user-specific config
Oh no, now I'm content with creating my own framework instead of using
something like digga or flake-utils.
2021-11-29 13:30:57 +08:00
..
config@9af98f21d2 Update user-specific config 2021-11-29 13:30:57 +08:00
foo-dogsquared Update user-specific config 2021-11-29 13:30:57 +08:00
README.adoc Update user-specific config 2021-11-29 13:30:57 +08:00

This is where user-specific configurations comes in. Ideally, the configurations are home-manager config. The configs should assume to be used as a configuration as .config/nixpkgs/home.nix (i.e., home-manager.lib.homeManagerConfiguration, home-manager.users.${user}, in your ordinary home-manager setup in a foreign distro).

Heres an example of a sample user config placed in users/hello.nix.

{ config, options, pkgs, lib, ... }:

{
  programs.home-manager.enable = true;
  programs.direnv.enable = true;
  home.file.".npmrc".source = ./config/npmrc;
}

This is to be imported to homeManagerConfiguration in the flake outputs and when indicated from config.modules.users.users (e.g., modules.users.users = [ "hello" ];).