[NixOS] Use home manager for vscode support
This commit is contained in:
parent
b102fd2b85
commit
58b9a395d7
@ -144,7 +144,7 @@
|
||||
mkConfig =
|
||||
args@
|
||||
{ system ? "x86_64-linux"
|
||||
, baseModules ? [inputs.vscode-server.nixosModules.default]
|
||||
, baseModules ? []
|
||||
, modules ? []
|
||||
, specialArgs ? {}
|
||||
, ...
|
||||
@ -156,7 +156,7 @@
|
||||
inherit inputs machineNames;
|
||||
makeEnable = (import ./make-enable.nix) nixpkgs.lib;
|
||||
mapValueToKeys = keys: value: builtins.listToAttrs (map (name: { inherit name value; }) keys);
|
||||
realUsers = [ "root" "imalison" "kat" "dean" "alex" "will" ];
|
||||
realUsers = [ "root" "imalison" "kat" "dean" "alex" "will" "mike" ];
|
||||
forEachUser = mapValueToKeys realUsers;
|
||||
keys = (import ./keys.nix);
|
||||
} // specialArgs;
|
||||
|
@ -1,4 +1,7 @@
|
||||
{ config, makeEnable, ... }:
|
||||
{ inputs, config, makeEnable, forEachUser, ... }:
|
||||
makeEnable config "modules.vscode" true {
|
||||
imports = [inputs.vscode-server.homeModules.default];
|
||||
home-manager.users = forEachUser {
|
||||
services.vscode-server.enable = true;
|
||||
};
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user