From e09f513e7d3f0a670468311cea6c5ca5831996a5 Mon Sep 17 00:00:00 2001 From: Vegard Bieker Matthey Date: Wed, 11 Mar 2026 06:10:31 +0100 Subject: [PATCH] add dwl package --- configuration.nix | 10 +++++++- flake.lock | 64 +++++++++++++++++++---------------------------- flake.nix | 8 +++++- home.nix | 4 --- 4 files changed, 42 insertions(+), 44 deletions(-) diff --git a/configuration.nix b/configuration.nix index cc03831..2fb52ce 100644 --- a/configuration.nix +++ b/configuration.nix @@ -1,9 +1,16 @@ -{ pkgs, lib, ... }: +{ + inputs, + pkgs, + lib, + ... +}: { imports = [ ./hardware-configuration.nix ]; + nixpkgs.overlays = [ (inputs.dwl.overlays.default) ]; + boot.loader.systemd-boot.enable = true; boot.loader.efi.canTouchEfiVariables = true; @@ -151,6 +158,7 @@ slurp wireshark brightnessctl + dwl ]; }; diff --git a/flake.lock b/flake.lock index 10cc663..0540535 100644 --- a/flake.lock +++ b/flake.lock @@ -1,5 +1,26 @@ { "nodes": { + "dwl": { + "inputs": { + "nixpkgs": [ + "nixpkgs" + ] + }, + "locked": { + "lastModified": 1773204156, + "narHash": "sha256-4iouJhaneIEd5EBLEon8T9YtyfKWUZlVLu9Dv+I5bcY=", + "ref": "master", + "rev": "e5cf8e2e3e7cf6c5cc6e02361c0527043375c882", + "revCount": 1324, + "type": "git", + "url": "https://git.pvv.ntnu.no/vegardbm/dwl.git" + }, + "original": { + "ref": "master", + "type": "git", + "url": "https://git.pvv.ntnu.no/vegardbm/dwl.git" + } + }, "flake-parts": { "inputs": { "nixpkgs-lib": [ @@ -21,24 +42,6 @@ "type": "github" } }, - "flake-utils": { - "inputs": { - "systems": "systems" - }, - "locked": { - "lastModified": 1731533236, - "narHash": "sha256-l0KFg5HjrsfsO/JpG+r7fRrqm12kzFHyUHqHCVpMMbI=", - "owner": "numtide", - "repo": "flake-utils", - "rev": "11707dc2f618dd54ca8739b309ec4fc024de578b", - "type": "github" - }, - "original": { - "owner": "numtide", - "repo": "flake-utils", - "type": "github" - } - }, "home-manager": { "inputs": { "nixpkgs": [ @@ -46,11 +49,11 @@ ] }, "locked": { - "lastModified": 1773093840, - "narHash": "sha256-u/96NoAyN8BSRuM3ZimGf7vyYgXa3pLx4MYWjokuoH4=", + "lastModified": 1773179137, + "narHash": "sha256-EdW2bwzlfme0vbMOcStnNmKlOAA05Bp6su2O8VLGT0k=", "owner": "nix-community", "repo": "home-manager", - "rev": "bb014746edb2a98d975abde4dd40fa240de4cf86", + "rev": "3f98e2bbc661ec0aaf558d8a283d6955f05f1d09", "type": "github" }, "original": { @@ -81,7 +84,7 @@ "nixpkgs": [ "nixpkgs" ], - "systems": "systems_2" + "systems": "systems" }, "locked": { "lastModified": 1772402258, @@ -99,7 +102,7 @@ }, "root": { "inputs": { - "flake-utils": "flake-utils", + "dwl": "dwl", "home-manager": "home-manager", "nixpkgs": "nixpkgs", "nixvim": "nixvim" @@ -119,21 +122,6 @@ "repo": "default", "type": "github" } - }, - "systems_2": { - "locked": { - "lastModified": 1681028828, - "narHash": "sha256-Vy1rq5AaRuLzOxct8nz4T6wlgyUR7zLU309k9mBC768=", - "owner": "nix-systems", - "repo": "default", - "rev": "da67096a3b9bf56a91d16901293e51ba5b49a27e", - "type": "github" - }, - "original": { - "owner": "nix-systems", - "repo": "default", - "type": "github" - } } }, "root": "root", diff --git a/flake.nix b/flake.nix index 6140c18..ecda9fb 100644 --- a/flake.nix +++ b/flake.nix @@ -2,15 +2,21 @@ description = "L config"; inputs = { nixpkgs.url = "github:nixos/nixpkgs/nixos-unstable"; + home-manager = { url = "github:nix-community/home-manager"; inputs.nixpkgs.follows = "nixpkgs"; }; + nixvim = { url = "github:nix-community/nixvim"; inputs.nixpkgs.follows = "nixpkgs"; }; - flake-utils.url = "github:numtide/flake-utils"; + + dwl = { + url = "git+https://git.pvv.ntnu.no/vegardbm/dwl.git?ref=master"; + inputs.nixpkgs.follows = "nixpkgs"; + }; }; outputs = inputs: { diff --git a/home.nix b/home.nix index df9d417..a6df01e 100644 --- a/home.nix +++ b/home.nix @@ -355,10 +355,6 @@ "XF86AudioMicMute" = "exec wpctl set-mute @DEFAULT_AUDIO_SOURCE@ toggle"; "XF86MonBrightnessUp" = "exec brightnessctl set +5%"; "XF86MonBrightnessDown" = "exec brightnessctl set 5%-"; - # "XF86KbdLightOnOff" = ""; - # "XF86XK_KbdBrightnessUp" = ""; - # "XF86XK_KbdBrightnessDown" = ""; - # "XF86XK_MonBrightnessCycle" = ""; "${modifier}+Delete" = "exec shutdown now"; }; };