dev.fron.io rc / efd3e0e
hosts::delta: hacky changes to allow twitch streaming Tony Olagbaiye 1 year, 16 days ago
6 changed file(s) with 82 addition(s) and 47 deletion(s). Raw diff Collapse all Expand all
198198 (concat "\n" (propertize line 'face 'weechat-read-marker)))))
199199 (evil-set-initial-state 'weechat-mode 'emacs)
200200
201 (add-hook 'after-init-hook #'bqv/weechat-local)
201 ;(add-hook 'after-init-hook #'bqv/weechat-local)
202202 '';
203203 };
204204 }
204204 },
205205 "emacs": {
206206 "locked": {
207 "lastModified": 1604636824,
208 "narHash": "sha256-00vhNAOT0j0FJbmQnKlQEizrYXc5aMRUgJLVtSIzvYk=",
207 "lastModified": 1605653432,
208 "narHash": "sha256-v31zU/BWimVn7pMVLXCgG/wu4EIDVY2zbhQ+2F7UMOY=",
209209 "owner": "nix-community",
210210 "repo": "emacs-overlay",
211 "rev": "68eae166cdb48b230a03085bdd3e422a54155f3a",
211 "rev": "4629eb4142029522703cd8ee3247397ae038d047",
212212 "type": "github"
213213 },
214214 "original": {
249249 apparmor apparmor-utils apparmor-kernel-patches apparmorRulesFromClosure iputils inetutils;
250250 inherit (inputs.rel2009.legacyPackages.${system}) firefox thunderbird; # slow
251251 inherit (inputs.rel2009.legacyPackages.${system}) rust-analyzer; # broken
252 inherit (inputs.master.legacyPackages.${system}) obs-studio; # un-wayland
252253 graalvm8 = builtins.trace "pkgs.graalvm8: suspended - too big and not cached" pkgs.hello;
253254 lbry = (pkgs.symlinkJoin {
254255 name = "lbry";
288289 ];
289290 }).overrideAttrs (_: { inherit (pkgs.rel2003.postman) meta; });
290291 hnix = let
291 hlib = inputs.staged.legacyPackages.${system}.haskell.lib;
292 hnix-store = pkgs.fetchFromGitHub {
293 owner = "haskell-nix";
294 repo = "hnix-store";
295 rev = "2497d37d35eeed854875e9245c02bf538eaafa10";
296 sha256 = "1xkj99ba4rc9mgd14bjsk170qvhmhrx00zz5bwml4737h3izl84k";
297 # date = 2020-11-13T23:36:12+01:00;
298 };
299 hpkgs = inputs.staged.legacyPackages.${system}.haskellPackages.override {
300 overrides = self: super: with hlib; {
301 cryptohash-sha512 = doJailbreak super.cryptohash-sha512;
302 hnix-store-core = addBuildDepends (overrideSrc super.hnix-store-core {
303 src = "${hnix-store}/hnix-store-core";
304 }) (with self; [
305 attoparsec algebraic-graphs cereal cereal cryptohash-sha512
306 io-streams lifted-base monad-control nix-derivation
307 process-extras tasty-golden
308 ]);
309 hnix-store-remote = addBuildDepends (overrideSrc super.hnix-store-remote {
310 src = "${hnix-store}/hnix-store-remote";
311 }) (with self; [
312 attoparsec filepath tasty tasty-discover tasty-hspec
313 tasty-hunit tasty-quickcheck linux-namespaces temporary
314 hspec-expectations-lifted
315 pkgs.nix
316 ]);
317 hnix = addBuildDepends (doJailbreak (overrideSrc super.hnix {
318 # PR: 554 derivationStruct
319 src = pkgs.fetchFromGitHub {
320 owner = "layus";
321 repo = "hnix";
322 rev = "derivationStrict"; # 6e8022c45
323 sha256 = "nUfvddtTKhmdauVvK8ErkjayiSXf78EVdK+Z/C+IDyA=";
324 # date = 2020-11-13T23:36:12+01:00;
325 };
326 })) (with self; [
327 hnix-store-remote
328 ]);
329 };
330 };
331 in hpkgs.hnix;
292 overlay = pkgs.fetchFromGitHub {
293 owner = "layus";
294 repo = "hnix-overlay";
295 rev = "c39949e8a5b1506e68114b684f05c97ddb6427b3";
296 sha256 = "d0f/7CDJFZhfgrBV/TtbZaw3Kio5pwLiZN2aat86Ibs=";
297 } + "/overlay.nix";
298 inherit (import pkgs.path {
299 inherit system;
300 overlays = import overlay;
301 }) haskellPackages haskell;
302 hnix = haskell.lib.appendPatch haskellPackages.hnix (
303 pkgs.fetchpatch {
304 url = "https://github.com/haskell-nix/hnix/commit/e2ad934492eeac9881527610e4a1c1cf31ea1115.patch";
305 sha256 = "dWMf50asrDaYtAU+Ii/Eu7/HiGnae0aeVqh7iUUhjr4=";
306 }
307 );
308 in pkgs.writeScriptBin "hnix" ''
309 #!${pkgs.execline}/bin/execlineb -S0
310 export NIX_DATA_DIR ${hnix.src}/data
311 ${hnix}/bin/hnix $@
312 '';
313 #hnix = let
314 # hlib = inputs.staged.legacyPackages.${system}.haskell.lib;
315 # hnix-store = pkgs.fetchFromGitHub {
316 # owner = "haskell-nix";
317 # repo = "hnix-store";
318 # rev = "2497d37d35eeed854875e9245c02bf538eaafa10";
319 # sha256 = "1xkj99ba4rc9mgd14bjsk170qvhmhrx00zz5bwml4737h3izl84k";
320 # # date = 2020-11-13T23:36:12+01:00;
321 # };
322 # hpkgs = inputs.staged.legacyPackages.${system}.haskellPackages.override {
323 # overrides = self: super: with hlib; {
324 # cryptohash-sha512 = doJailbreak super.cryptohash-sha512;
325 # hnix-store-core = addBuildDepends (overrideSrc super.hnix-store-core {
326 # src = "${hnix-store}/hnix-store-core";
327 # }) (with self; [
328 # attoparsec algebraic-graphs cereal cereal cryptohash-sha512
329 # io-streams lifted-base monad-control nix-derivation
330 # process-extras tasty-golden
331 # ]);
332 # hnix-store-remote = addBuildDepends (overrideSrc super.hnix-store-remote {
333 # src = "${hnix-store}/hnix-store-remote";
334 # }) (with self; [
335 # attoparsec filepath tasty tasty-discover tasty-hspec
336 # tasty-hunit tasty-quickcheck linux-namespaces temporary
337 # hspec-expectations-lifted
338 # pkgs.nix
339 # ]);
340 # hnix = addBuildDepends (doJailbreak (overrideSrc super.hnix {
341 # # PR: 554 derivationStruct
342 # src = pkgs.fetchFromGitHub {
343 # owner = "layus";
344 # repo = "hnix";
345 # rev = "derivationStrict"; # 6e8022c45
346 # sha256 = "nUfvddtTKhmdauVvK8ErkjayiSXf78EVdK+Z/C+IDyA=";
347 # # date = 2020-11-13T23:36:12+01:00;
348 # };
349 # })) (with self; [
350 # hnix-store-remote
351 # ]);
352 # };
353 # };
354 #in hpkgs.hnix;
332355 })
333356 ];
334357 };
414437 nix.nixPath = [
415438 "nixpkgs=${channels.pkgs}"
416439 "nixos=${inputs.self}/configuration.nix"
440 "nix=${inputs.nix}/corepkgs"
417441 "self=/run/current-system/flake/input/self/configuration.nix"
418442 ];
419443
120120 nrBuildUsers = 64;
121121
122122 extraOptions = with usr.units; ''
123 min-free = ${toString (gigabytes 100)}
123 min-free = ${toString (gigabytes 5)}
124124 '';
125125
126126 buildMachines = lib.optionals true [
3434 enable = true;
3535 user = "bao";
3636 };
37 defaultSession = "none+exwm";
37 #defaultSession = "none+exwm";
38 defaultSession = "none+openbox";
3839 };
40 windowManager.openbox.enable = true;
3941 };
4042 }
103103 programs.jq.enable = true;
104104 programs.direnv.enable = true;
105105 programs.texlive.enable = true;
106 programs.texlive.extraPackages = tpkgs: {
107 inherit (tpkgs) collection-basic;
108 inherit (tpkgs) collection-latex;
109 inherit (tpkgs) collection-latexrecommended;
110 inherit (tpkgs) collection-latexextra;
111 inherit (tpkgs) collection-luatex;
112 inherit (tpkgs) collection-fontsrecommended;
113 inherit (tpkgs) collection-fontsextra;
114 };
106115 programs.taskwarrior.enable = true;
107116 programs.neomutt.enable = true;
108117 programs.obs-studio.enable = true;