Merge pull request 'Autostart is configurable' (#14) from feature/hyprland-autostart into master
Reviewed-on: #14
This commit was merged in pull request #14.
This commit is contained in:
@@ -30,6 +30,13 @@
|
||||
networking.networkmanager.enable = true;
|
||||
networking.nameservers = [ "192.168.68.56" "1.1.1.1" "8.8.8.8" ];
|
||||
|
||||
home-manager.users.avravels.home.hyprland.execOnce = [
|
||||
"waybar"
|
||||
"[workspace 1 silent] kitty tmux"
|
||||
"[workspace 1 silent] spotify"
|
||||
"[workspace 2 silent] firefox"
|
||||
];
|
||||
|
||||
networking.interfaces.enp130s0.wakeOnLan.enable = true;
|
||||
networking.firewall.allowedUDPPorts = [ 9 ];
|
||||
|
||||
|
||||
@@ -1,6 +1,18 @@
|
||||
{ pkgs, ... }:
|
||||
{ lib, pkgs, config, ... }:
|
||||
|
||||
let
|
||||
cfg = config.home.hyprland;
|
||||
in
|
||||
|
||||
{
|
||||
options.home.hyprland = {
|
||||
execOnce = lib.mkOption {
|
||||
type = lib.types.listOf lib.types.str;
|
||||
default = [ "waybar" ];
|
||||
description = "Commands to run once when Hyprland starts (maps to Hyprland `exec-once`).";
|
||||
};
|
||||
};
|
||||
config = {
|
||||
home.packages = with pkgs; [
|
||||
bzmenu
|
||||
hyprshot
|
||||
@@ -63,9 +75,8 @@
|
||||
};
|
||||
};
|
||||
|
||||
exec-once = [
|
||||
"waybar"
|
||||
];
|
||||
# Use the configurable option here (default `[ "waybar" ]`)
|
||||
exec-once = (if cfg == null then { execOnce = [ "waybar" ]; } else cfg).execOnce;
|
||||
|
||||
### INPUT
|
||||
input = {
|
||||
@@ -140,4 +151,5 @@
|
||||
];
|
||||
};
|
||||
};
|
||||
};
|
||||
}
|
||||
|
||||
@@ -33,6 +33,8 @@
|
||||
|
||||
networking.hostName = "laptop-armel";
|
||||
|
||||
home-manager.users.avravels.home.hyprland.execOnce = [ "waybar" ];
|
||||
|
||||
home-manager.users.avravels.home.git.userName = "Armel van Ravels";
|
||||
home-manager.users.avravels.home.git.userEmail = "armel@webavance.nl";
|
||||
|
||||
|
||||
Reference in New Issue
Block a user