working on waybar
This commit is contained in:
@@ -1,7 +1,7 @@
|
||||
{ lib, pkgs, config, flakeRoot, ... }:
|
||||
|
||||
let
|
||||
# Copy the config and style files into the Nix store
|
||||
username = "henrov"; # Replace with your actual username
|
||||
waybar-config = pkgs.writeText "waybar-config" (builtins.readFile (flakeRoot + "/assets/system/conf/waybar/config"));
|
||||
waybar-style = pkgs.writeText "waybar-style" (builtins.readFile (flakeRoot + "/assets/system/conf/waybar/style.css"));
|
||||
in
|
||||
@@ -24,8 +24,9 @@ in
|
||||
|
||||
# Create symlinks for config and style
|
||||
system.activationScripts.waybarSetup = lib.mkAfter ''
|
||||
mkdir -p /home/${config.users.users.${config.nixpkgs.config.permittedUsers[0]}.name}/.config/waybar
|
||||
ln -sf ${waybar-config} /home/${config.users.users.${config.nixpkgs.config.permittedUsers[0]}.name}/.config/waybar/config
|
||||
ln -sf ${waybar-style} /home/${config.users.users.${config.nixpkgs.config.permittedUsers[0]}.name}/.config/waybar/style.css
|
||||
mkdir -p /home/${username}/.config/waybar
|
||||
ln -sf ${waybar-config} /home/${username}/.config/waybar/config
|
||||
ln -sf ${waybar-style} /home/${username}/.config/waybar/style.css
|
||||
chown -R ${username}:users /home/${username}/.config/waybar
|
||||
'';
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user