Add custom impermanence module

Signed-off-by: Nikolaos Karaolidis <nick@karaolidis.com>
This commit is contained in:
2024-08-08 22:03:15 +03:00
parent 5e57d63a54
commit 22e0150a65
69 changed files with 777 additions and 494 deletions

View File

@@ -1,5 +1,6 @@
{
username ? throw "username argument is required",
user ? throw "user argument is required",
home ? throw "home argument is required",
}:
{
config,
@@ -7,13 +8,10 @@
pkgs,
...
}:
let
hmConfig = config.home-manager.users.${username};
in
{
programs.hyprland.enable = true;
home-manager.users.${username} = {
home-manager.users.${user} = {
imports = [ ./options.nix ];
wayland.windowManager.hyprland = {
@@ -138,7 +136,7 @@ in
'';
theme = {
templates."${hmConfig.xdg.configHome}/hypr/theme.conf".source = ./theme.conf;
templates."${home}/.config/hypr/theme.conf".source = ./theme.conf;
extraConfig = "${
lib.meta.getExe (