1
1
mirror of https://github.com/divnix/digga.git synced 2024-12-24 16:44:52 +03:00
digga/examples/hmOnly/home/users/testuser.nix
Matt Schreiber 61828b5075 fix: module args of home-manager portable configs
Type-check such configs as modules ("moduleType") rather than as
functions evaluating to attribute sets ("functionTo attrs").  This
ensures that they get invoked with all expected module arguments
("pkgs", "lib", etc.).

Update ./examples/hmOnly so that the testuser config references the pkgs
module arg, thus testing that the switch to moduleType works as
intended.

Closes #119
2022-02-23 15:23:14 -08:00

19 lines
290 B
Nix

{ pkgs, suites, ... }:
let
name = "Test User";
email = "test@example.com";
in
{
imports = suites.shell;
home.packages = [ pkgs.hello ];
programs.browserpass.enable = true;
programs.starship.enable = true;
programs.git = {
userName = name;
userEmail = email;
};
}