Skip to content

Commit

Permalink
imp: add portable user definition
Browse files Browse the repository at this point in the history
According to nix-community/home-manager#2161
there might be a better formal distinction between host-spaced and
portable arch-spaced hm users in the future.
  • Loading branch information
blaggacao committed Jul 16, 2021
1 parent 6ebdf3a commit 81bb17f
Show file tree
Hide file tree
Showing 3 changed files with 15 additions and 10 deletions.
15 changes: 9 additions & 6 deletions flake.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

4 changes: 4 additions & 0 deletions flake.nix
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@
digga.url = "github:divnix/digga/develop";
digga.inputs.nixpkgs.follows = "nixos";
digga.inputs.nixlib.follows = "nixos";
digga.inputs.home-manager.follows = "home";

bud.url = "github:divnix/bud";
bud.inputs.nixpkgs.follows = "nixos";
Expand Down Expand Up @@ -136,6 +137,9 @@
base = [ direnv git ];
};
};
users = {
nixos = { suites, ... }: { imports = suites.base; };
}; # digga.lib.importers.rakeLeaves ./users/hm;
};

devshell.modules = [ (import ./shell bud') ];
Expand Down
6 changes: 2 additions & 4 deletions users/nixos/default.nix
Original file line number Diff line number Diff line change
@@ -1,8 +1,6 @@
{ ... }:
{ hmUsers, ... }:
{
home-manager.users.nixos = { suites, ... }: {
imports = suites.base;
};
home-manager.users = { inherit (hmUsers) nixos; };

users.users.nixos = {
uid = 1000;
Expand Down

0 comments on commit 81bb17f

Please sign in to comment.