Added networking
This commit is contained in:
@@ -6,14 +6,13 @@
|
||||
flakeRoot,
|
||||
...
|
||||
}:
|
||||
|
||||
let
|
||||
hyprlandConfigDir = "${config.home-manager.users.${user.username}.xdg.configHome}/hypr";
|
||||
# Dynamically read all files in assets/hyprland/conf/
|
||||
hyprlandConfs =
|
||||
lib.genAttrs (builtins.attrNames (builtins.readDir "${flakeRoot}/assets/hyprland/conf/hypr"))
|
||||
lib.genAttrs (builtins.attrNames (builtins.readDir "${flakeRoot}/assets/hyprland/conf"))
|
||||
(name: {
|
||||
text = builtins.readFile "${flakeRoot}/assets/hyprland/conf/hypr/${name}";
|
||||
text = builtins.readFile "${flakeRoot}/assets/hyprland/conf/${name}";
|
||||
});
|
||||
in
|
||||
{
|
||||
@@ -34,11 +33,10 @@ in
|
||||
enable = true;
|
||||
};
|
||||
|
||||
# Ensure the Hyprland config directory exists
|
||||
# Merge dynamic Hyprland configs with existing xdg.configFile
|
||||
xdg.configFile = {
|
||||
"hypr/.keep" = {
|
||||
text = "";
|
||||
};
|
||||
} // hyprlandConfs;
|
||||
# Your existing manual configs (if any)
|
||||
}
|
||||
// hyprlandConfs;
|
||||
};
|
||||
}
|
||||
|
||||
@@ -8,7 +8,7 @@
|
||||
...
|
||||
}:
|
||||
let
|
||||
bindingsContent = builtins.readFile (flakeRoot + "/assets/hyprland/conf/hypr/bindings.conf");
|
||||
bindingsContent = builtins.readFile (flakeRoot + "/assets/hyprland/conf/bindings.conf");
|
||||
in
|
||||
{
|
||||
home-manager.users.${user.username} = {
|
||||
|
||||
@@ -0,0 +1,35 @@
|
||||
{ config, pkgs, lib, user, flakeRoot, ... }:
|
||||
let
|
||||
xdgDataHome = config.home-manager.users.${user.username}.xdg.dataHome;
|
||||
in
|
||||
{
|
||||
# NixOS: Install Wofi system-wide (optional)
|
||||
environment.systemPackages = with pkgs; [ wofi ];
|
||||
|
||||
# Home Manager: User-specific Wofi config
|
||||
home-manager.users.${user.username} = {
|
||||
# Install Wofi for the user
|
||||
home.packages = with pkgs; [ wofi ];
|
||||
|
||||
# Wofi configuration
|
||||
xdg.configFile."wofi/config".text = ''
|
||||
dark
|
||||
width=500
|
||||
height=800
|
||||
lines=10
|
||||
columns=1
|
||||
cache_dir=${xdgDataHome}/wofi
|
||||
allow_images=true
|
||||
allow_markup=true
|
||||
show_drun=true
|
||||
'';
|
||||
|
||||
# Catppuccin Mocha theme for Wofi
|
||||
xdg.configFile."wofi/style.css".text = builtins.readFile "${pkgs.fetchFromGitHub {
|
||||
owner = "catppuccin";
|
||||
repo = "wofi";
|
||||
rev = "a0c34a8e9d3a1f71b1b2a8e3b5b8e3e8b1b3b8e3"; # Replace with the correct SHA256 hash
|
||||
sha256 = "0000000000000000000000000000000000000000000000000000"; # Replace with the correct SHA256 hash
|
||||
}}/style-mocha.css";
|
||||
};
|
||||
}
|
||||
Reference in New Issue
Block a user