helm/settings.nix
Henrik Lissner 3e823d3b44
Alias home-manager.users.hlissner to home
And add settings.nix.
2020-01-03 23:00:27 -05:00

46 lines
951 B
Nix

{ config, options, lib, utils, pkgs, ... }:
with lib;
{
imports = [
<home-manager/nixos>
];
options = {
username = mkOption {
type = types.str;
default = "hlissner";
description = "My username";
};
home = mkOption {
type = options.home-manager.users.type.functor.wrapped;
default = {};
description = "Home-manager configuration for my user";
};
# TODO
# paths = mkOption {
# type = types.listOf types.path;
# default = [];
# description = "Custom PATH entries";
# };
my = mkOption {
type = types.listOf types.functor;
default = [];
description = "Nix config helpers";
};
};
config = {
home-manager.users = {
${config.username} = mkAliasDefinitions options.home;
};
# environment.extraInit = ''
# export PATH="${lib.concatStringsSep ":" (map builtins.toString config.paths)}:$PATH"
# '';
};
}