mirror of
https://github.com/aviallon/nixos-lib.git
synced 2026-04-06 01:38:06 +00:00
[HomeManager] Use git repo instead of nix channel
Prepare for flakes
This commit is contained in:
parent
9cbbc8ec6f
commit
522d19bf5b
1 changed files with 15 additions and 3 deletions
|
|
@ -1,16 +1,28 @@
|
|||
{config, pkgs, lib, ...}:
|
||||
{config, pkgs, lib, utils, ...}:
|
||||
with lib;
|
||||
let
|
||||
cfg = config.aviallon.home-manager;
|
||||
usersCfg = config.users;
|
||||
usersCfg = attrByPath [ "users" ] { users = {}; groups = {}; } config;
|
||||
defaultUsers = attrNames (filterAttrs (name: value: value.isNormalUser) usersCfg.users);
|
||||
hmUserCfg = u: config.home-manager.users.${u};
|
||||
userCfg = u: config.users.users.${u};
|
||||
getUserCfgPath = u: "${(userCfg u).home}/.config/nixpkgs/home.nix";
|
||||
|
||||
homeManager = fetchGit {
|
||||
url = "https://github.com/nix-community/home-manager";
|
||||
ref = "release-22.05";
|
||||
};
|
||||
|
||||
homeManagerNixos = import "${homeManager}/nixos" {
|
||||
inherit config;
|
||||
inherit pkgs;
|
||||
inherit lib;
|
||||
inherit utils;
|
||||
};
|
||||
in
|
||||
{
|
||||
imports = [
|
||||
<home-manager/nixos>
|
||||
homeManagerNixos
|
||||
];
|
||||
|
||||
options.aviallon.home-manager = {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue