Reorganize imports
Signed-off-by: Nikolaos Karaolidis <nick@karaolidis.com>
This commit is contained in:
30
hosts/common/configs/user/gui/openlens/default.nix
Normal file
30
hosts/common/configs/user/gui/openlens/default.nix
Normal file
@@ -0,0 +1,30 @@
|
||||
{
|
||||
user ? throw "user argument is required",
|
||||
home ? throw "home argument is required",
|
||||
}:
|
||||
{ config, pkgs, ... }:
|
||||
let
|
||||
hmConfig = config.home-manager.users.${user};
|
||||
in
|
||||
{
|
||||
home-manager.users.${user} = {
|
||||
home.packages = [ (pkgs.callPackage ./package.nix { }) ];
|
||||
|
||||
xdg.configFile."OpenLens/lens-user-store.json".source =
|
||||
(pkgs.formats.json { }).generate "lens-user-store.json"
|
||||
{
|
||||
__internal__ = {
|
||||
migrations = {
|
||||
version = "6.5.0";
|
||||
};
|
||||
};
|
||||
|
||||
preferences = {
|
||||
colorTheme = "system";
|
||||
editorConfiguration.fontFamily = builtins.head hmConfig.theme.font.monospace.names;
|
||||
terminalConfig.fontFamily = builtins.head hmConfig.theme.font.monospace.names;
|
||||
terminalCopyOnSelect = true;
|
||||
};
|
||||
};
|
||||
};
|
||||
}
|
Reference in New Issue
Block a user