working on waybar
This commit is contained in:
+348
-346
File diff suppressed because it is too large
Load Diff
+6
-4
@@ -888,7 +888,7 @@ This file installs and configures waybar
|
||||
{ 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
|
||||
@@ -911,11 +911,13 @@ 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
|
||||
'';
|
||||
}
|
||||
|
||||
#+END_SRC
|
||||
|
||||
** =generated/system/core/login-tuigreeter.nix=
|
||||
|
||||
@@ -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