Add libreoffice
Signed-off-by: Nikolaos Karaolidis <nick@karaolidis.com>
This commit is contained in:
@@ -17,7 +17,7 @@
|
|||||||
|
|
||||||
users.${username} = {
|
users.${username} = {
|
||||||
home.stateVersion = "24.11";
|
home.stateVersion = "24.11";
|
||||||
systemd.user.startServices = "sd-switch";
|
systemd.user.startServices = true;
|
||||||
nix.settings = config.nix.settings;
|
nix.settings = config.nix.settings;
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
|
45
hosts/common/user/configs/gui/libreoffice/default.nix
Normal file
45
hosts/common/user/configs/gui/libreoffice/default.nix
Normal file
@@ -0,0 +1,45 @@
|
|||||||
|
{
|
||||||
|
username ? throw "username argument is required",
|
||||||
|
}:
|
||||||
|
{
|
||||||
|
config,
|
||||||
|
lib,
|
||||||
|
pkgs,
|
||||||
|
...
|
||||||
|
}:
|
||||||
|
let
|
||||||
|
hmConfig = config.home-manager.users.${username};
|
||||||
|
in
|
||||||
|
{
|
||||||
|
environment.persistence = {
|
||||||
|
"/persist".users.${username}.directories = [
|
||||||
|
"${hmConfig.xdg.relativeConfigHome}/libreoffice/4/user"
|
||||||
|
];
|
||||||
|
"/cache".users.${username}.directories = [
|
||||||
|
"${hmConfig.xdg.relativeConfigHome}/libreoffice/4/cache"
|
||||||
|
];
|
||||||
|
};
|
||||||
|
|
||||||
|
home-manager.users.${username} = {
|
||||||
|
home.packages = with pkgs; [
|
||||||
|
libreoffice-fresh
|
||||||
|
hunspell
|
||||||
|
hunspellDicts.en-us-large
|
||||||
|
hunspellDicts.el-gr
|
||||||
|
];
|
||||||
|
|
||||||
|
xdg.configFile."libreoffice/4/user/registrymodifications.xcu" = {
|
||||||
|
force = true;
|
||||||
|
text = ''
|
||||||
|
<?xml version="1.0" encoding="UTF-8"?>
|
||||||
|
<oor:items xmlns:oor="http://openoffice.org/2001/registry" xmlns:xs="http://www.w3.org/2001/XMLSchema" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
|
||||||
|
<item oor:path="/org.openoffice.Office.Common/Misc"><prop oor:name="ShowTipOfTheDay" oor:op="fuse"><value>false</value></prop></item>
|
||||||
|
<item oor:path="/org.openoffice.Office.Common/Misc"><prop oor:name="FirstRun" oor:op="fuse"><value>false</value></prop></item>
|
||||||
|
<item oor:path="/org.openoffice.Setup/Office"><prop oor:name="ooSetupInstCompleted" oor:op="fuse"><value>true</value></prop></item>
|
||||||
|
<item oor:path="/org.openoffice.Setup/Product"><prop oor:name="ooSetupLastVersion" oor:op="fuse"><value>${lib.lists.last (lib.strings.splitString "/" pkgs.libreoffice-fresh.meta.changelog)}</value></prop></item>
|
||||||
|
<item oor:path="/org.openoffice.Setup/Product"><prop oor:name="LastTimeDonateShown" oor:op="fuse"><value>0</value></prop></item>
|
||||||
|
<item oor:path="/org.openoffice.Setup/Product"><prop oor:name="LastTimeGetInvolvedShown" oor:op="fuse"><value>0</value></prop></item>
|
||||||
|
'';
|
||||||
|
};
|
||||||
|
};
|
||||||
|
}
|
@@ -42,6 +42,7 @@ in
|
|||||||
(import ../common/user/configs/gui/hyprland { inherit username; })
|
(import ../common/user/configs/gui/hyprland { inherit username; })
|
||||||
(import ../common/user/configs/gui/hyprshot { inherit username; })
|
(import ../common/user/configs/gui/hyprshot { inherit username; })
|
||||||
(import ../common/user/configs/gui/kitty { inherit username; })
|
(import ../common/user/configs/gui/kitty { inherit username; })
|
||||||
|
(import ../common/user/configs/gui/libreoffice { inherit username; })
|
||||||
(import ../common/user/configs/gui/networking { inherit username; })
|
(import ../common/user/configs/gui/networking { inherit username; })
|
||||||
(import ../common/user/configs/gui/obsidian { inherit username; })
|
(import ../common/user/configs/gui/obsidian { inherit username; })
|
||||||
(import ../common/user/configs/gui/pipewire { inherit username; })
|
(import ../common/user/configs/gui/pipewire { inherit username; })
|
||||||
|
Reference in New Issue
Block a user