Add elara

Signed-off-by: Nikolaos Karaolidis <nick@karaolidis.com>
This commit is contained in:
2024-12-18 20:57:26 +00:00
parent f96a5c7776
commit e23e71560f
48 changed files with 655 additions and 246 deletions

View File

@@ -24,8 +24,10 @@
environment = {
systemPackages = [ config.virtualisation.libvirtd.qemu.swtpm.package ];
etc = {
"ovmf/edk2-x86_64-secure-code.fd".source = "${config.virtualisation.libvirtd.qemu.package}/share/qemu/edk2-x86_64-secure-code.fd";
"ovmf/edk2-i386-vars.fd".source = "${config.virtualisation.libvirtd.qemu.package}/share/qemu/edk2-i386-vars.fd";
"ovmf/edk2-x86_64-secure-code.fd".source =
"${config.virtualisation.libvirtd.qemu.package}/share/qemu/edk2-x86_64-secure-code.fd";
"ovmf/edk2-i386-vars.fd".source =
"${config.virtualisation.libvirtd.qemu.package}/share/qemu/edk2-i386-vars.fd";
};
persistence."/persist"."/var/lib/libvirt" = { };
};

View File

@@ -1,5 +1,5 @@
if [[ "$(id -u)" -ne 0 ]]; then
echo "This script must be run as root."
if [[ "${EUID}" -ne 0 ]]; then
echo "Please run the script as root."
exit 1
fi

View File

@@ -1,6 +1,9 @@
{ config, inputs, ... }:
{
sops.secrets."nix/accessTokens/github".group = "users";
sops.secrets."nix/accessTokens/github" = {
sopsFile = ../../../../../secrets/personal/secrets.yaml;
group = "users";
};
nix = {
settings = {

View File

@@ -3,6 +3,7 @@
programs.ssh = {
knownHosts = {
eirene.publicKeyFile = ../../../../eirene/secrets/ssh_host_ed25519_key.pub;
elara.publicKeyFile = ../../../../elara/secrets/ssh_host_ed25519_key.pub;
};
};
}

View File

@@ -43,10 +43,5 @@ in
);
};
};
sops.secrets = {
"git/credentials".path = "${home}/.config/git/credentials";
"git/cookies".path = "${home}/.config/git/cookies";
};
};
}

View File

@@ -61,10 +61,5 @@
Install.WantedBy = [ "default.target" ];
};
};
sops.secrets = {
"gpg-agent/pgp/key" = { };
"gpg-agent/pgp/pass" = { };
};
};
}

View File

@@ -713,7 +713,7 @@ in
}
) hmConfig.programs.obsidian.vaults;
sops.secrets."google/geocoding" = { };
sops.secrets."google/geocoding".sopsFile = ../../../../../../secrets/personal/secrets.yaml;
wayland.windowManager.hyprland.settings.bind = [ "$mod, o, exec, ${pkgs.obsidian}/bin/obsidian" ];
};

View File

@@ -62,7 +62,7 @@ in
];
};
sops.secrets."spotify/username" = { };
sops.secrets."spotify/username".sopsFile = ../../../../../../secrets/personal/secrets.yaml;
xdg.configFile = {
"spotify/prefs.init" = {

View File

@@ -12,6 +12,10 @@ let
name = "theme-init";
runtimeInputs = with pkgs; [ matugen ];
text = ''
[[ ! -d "${cfg.configDir}" ]] && mkdir -p "${cfg.configDir}"
[[ ! -L "${cfg.configDir}"/wallpaper ]] && ln -sf "${cfg.wallpaper}" "${cfg.configDir}"/wallpaper
[[ ! -f "${cfg.configDir}"/mode ]] && echo "${cfg.mode}" > "${cfg.configDir}"/mode
matugen image "${cfg.configDir}/wallpaper" \
--type scheme-${cfg.flavour} \
--mode "$(cat "${cfg.configDir}/mode")" \

View File

@@ -1,7 +1,3 @@
[[ ! -d "${CONFIG}" ]] && mkdir -p "${CONFIG}"
[[ ! -L "${CONFIG}"/wallpaper ]] && ln -sf "${DEFAULT_WALLPAPER}" "${CONFIG}"/wallpaper
[[ ! -f "${CONFIG}"/mode ]] && echo "${DEFAULT_MODE}" > "${CONFIG}"/mode
WALLPAPER=""
MODE=""

View File

@@ -43,6 +43,7 @@ in
ms-vsliveshare.vsliveshare
github.copilot
naumovs.color-highlight
signageos.signageos-vscode-sops
];
userSettings = {
@@ -117,5 +118,7 @@ in
./langs/python
./langs/svelte
];
wayland.windowManager.hyprland.settings.bind = [ "$mod, c, exec, ${lib.meta.getExe pkgs.vscode}" ];
};
}