Basic restructuring fix

This commit is contained in:
Gabriel Arazas 2021-12-06 18:22:08 +08:00
parent c7d2b21756
commit c99beb25ce
19 changed files with 35 additions and 3 deletions

34
flake.lock generated
View File

@ -20,6 +20,37 @@
"type": "github"
}
},
"flake-compat": {
"flake": false,
"locked": {
"lastModified": 1627913399,
"narHash": "sha256-hY8g6H2KFL8ownSiFeMOjwPC8P0ueXpCVEbxgda3pko=",
"owner": "edolstra",
"repo": "flake-compat",
"rev": "12c64ca55c1014cdc1b16ed5a804aa8576601ff2",
"type": "github"
},
"original": {
"owner": "edolstra",
"repo": "flake-compat",
"type": "github"
}
},
"flake-utils": {
"locked": {
"lastModified": 1629481132,
"narHash": "sha256-JHgasjPR0/J1J3DRm4KxM4zTyAj4IOJY8vIl75v/kPI=",
"owner": "numtide",
"repo": "flake-utils",
"rev": "997f7efcb746a9c140ce1f13c72263189225f482",
"type": "github"
},
"original": {
"owner": "numtide",
"repo": "flake-utils",
"type": "github"
}
},
"home-manager": {
"inputs": {
"nixpkgs": [
@ -120,7 +151,8 @@
"inputs": {
"agenix": "agenix",
"home-manager": "home-manager",
"nixpkgs": "nixpkgs"
"neovim-nightly-overlay": "neovim-nightly-overlay",
"nixpkgs": "nixpkgs_2"
}
}
},

View File

@ -3,8 +3,8 @@
let
cfg = config.modules.users;
userModules = lib.getUsers cfg.users;
homeManagerModules = lib.filesToAttr ../users/modules;
userModules = lib.getUsers "home-manager" cfg.users;
homeManagerModules = lib.filesToAttr ../home-manager;
users = lib.attrNames userModules;
nonexistentUsers = lib.filter (name: !lib.elem name users) cfg.users;