dwl: external config
This commit is contained in:
parent
3ad4ddbda4
commit
4ed8d17b7e
3 changed files with 26 additions and 4 deletions
22
flake.lock
22
flake.lock
|
@ -651,6 +651,7 @@
|
||||||
"repo-clone": "repo-clone",
|
"repo-clone": "repo-clone",
|
||||||
"sops-nix": "sops-nix",
|
"sops-nix": "sops-nix",
|
||||||
"umu": "umu_2",
|
"umu": "umu_2",
|
||||||
|
"zdwl": "zdwl",
|
||||||
"zdwm": "zdwm"
|
"zdwm": "zdwm"
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
|
@ -729,13 +730,13 @@
|
||||||
"revCount": 867,
|
"revCount": 867,
|
||||||
"submodules": true,
|
"submodules": true,
|
||||||
"type": "git",
|
"type": "git",
|
||||||
"url": "https://github.com/Open-Wine-Components/umu-launcher/"
|
"url": "https://github.com/Open-Wine-Components/umu-launcher/?dir=packaging/nix"
|
||||||
},
|
},
|
||||||
"original": {
|
"original": {
|
||||||
"dir": "packaging/nix",
|
"dir": "packaging/nix",
|
||||||
"submodules": true,
|
"submodules": true,
|
||||||
"type": "git",
|
"type": "git",
|
||||||
"url": "https://github.com/Open-Wine-Components/umu-launcher/"
|
"url": "https://github.com/Open-Wine-Components/umu-launcher/?dir=packaging/nix"
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
"xwayland-satellite-stable": {
|
"xwayland-satellite-stable": {
|
||||||
|
@ -771,6 +772,23 @@
|
||||||
"type": "github"
|
"type": "github"
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
|
"zdwl": {
|
||||||
|
"flake": false,
|
||||||
|
"locked": {
|
||||||
|
"lastModified": 1734081909,
|
||||||
|
"narHash": "sha256-1gzw818Kqkn5JORht910b3kK3F2BZstzxdRFTaEAB5M=",
|
||||||
|
"ref": "0.7",
|
||||||
|
"rev": "49888cdcbbace159bc020e3f4be228e63e0c7bad",
|
||||||
|
"revCount": 1250,
|
||||||
|
"type": "git",
|
||||||
|
"url": "https://git.zynh.me/Zynh0722/dwl"
|
||||||
|
},
|
||||||
|
"original": {
|
||||||
|
"ref": "0.7",
|
||||||
|
"type": "git",
|
||||||
|
"url": "https://git.zynh.me/Zynh0722/dwl"
|
||||||
|
}
|
||||||
|
},
|
||||||
"zdwm": {
|
"zdwm": {
|
||||||
"flake": false,
|
"flake": false,
|
||||||
"locked": {
|
"locked": {
|
||||||
|
|
|
@ -16,6 +16,7 @@
|
||||||
|
|
||||||
repo-clone.url = "git+https://git.zynh.me/Zynh0722/repo-clone";
|
repo-clone.url = "git+https://git.zynh.me/Zynh0722/repo-clone";
|
||||||
zdwm = { url = "git+https://git.zynh.me/Zynh0722/dwm?ref=preanybar-systray"; flake = false; };
|
zdwm = { url = "git+https://git.zynh.me/Zynh0722/dwm?ref=preanybar-systray"; flake = false; };
|
||||||
|
zdwl = { url = "git+https://git.zynh.me/Zynh0722/dwl?ref=0.7"; flake = false; };
|
||||||
fish_theme = { url = "git+https://git.zynh.me/Zynh0722/omf-theme"; flake = false; };
|
fish_theme = { url = "git+https://git.zynh.me/Zynh0722/omf-theme"; flake = false; };
|
||||||
backgrounds = { url = "git+https://git.zynh.me/Zynh0722/backgrounds"; inputs.nixpkgs.follows = "nixpkgs"; };
|
backgrounds = { url = "git+https://git.zynh.me/Zynh0722/backgrounds"; inputs.nixpkgs.follows = "nixpkgs"; };
|
||||||
umu = { url = "git+https://github.com/Open-Wine-Components/umu-launcher/?dir=packaging\/nix&submodules=1"; inputs.nixpkgs.follows = "nixpkgs"; };
|
umu = { url = "git+https://github.com/Open-Wine-Components/umu-launcher/?dir=packaging\/nix&submodules=1"; inputs.nixpkgs.follows = "nixpkgs"; };
|
||||||
|
|
|
@ -1,4 +1,4 @@
|
||||||
{ lib, config, pkgs, ... }:
|
{ lib, config, pkgs, inputs, ... }:
|
||||||
|
|
||||||
let
|
let
|
||||||
cfg = config.snowhawk.dwl;
|
cfg = config.snowhawk.dwl;
|
||||||
|
@ -9,7 +9,9 @@ in
|
||||||
|
|
||||||
package = lib.mkOption {
|
package = lib.mkOption {
|
||||||
type = with lib.types; package;
|
type = with lib.types; package;
|
||||||
default = pkgs.dwl;
|
default = pkgs.dwl.overrideAttrs (old: {
|
||||||
|
src = inputs.zdwl;
|
||||||
|
});
|
||||||
apply = p: p.overrideAttrs {
|
apply = p: p.overrideAttrs {
|
||||||
postInstall = ''
|
postInstall = ''
|
||||||
mkdir -p $out/share/wayland-sessions
|
mkdir -p $out/share/wayland-sessions
|
||||||
|
@ -27,6 +29,7 @@ in
|
||||||
enable = true;
|
enable = true;
|
||||||
sessionPackages = [ cfg.package ];
|
sessionPackages = [ cfg.package ];
|
||||||
defaultSession = "dwl";
|
defaultSession = "dwl";
|
||||||
|
# TODO: greetd?
|
||||||
sddm = {
|
sddm = {
|
||||||
enable = lib.mkDefault true;
|
enable = lib.mkDefault true;
|
||||||
wayland.enable = lib.mkDefault true;
|
wayland.enable = lib.mkDefault true;
|
||||||
|
|
Loading…
Reference in a new issue