dev.fron.io rc / 3b0176e
hosts(zeta): upgrade to nix-ipfs Tony Olagbaiye 11 months ago
3 changed file(s) with 8 addition(s) and 7 deletion(s). Raw diff Collapse all Expand all
00 #+title: NixOS System Configuration
11 #+author: bqv
22 #+email: nixos@fron.io
3 #+OPTIONS: toc:nil num:nil
3 #+options: toc:nil num:nil
44
55 #+BEGIN_SRC nix
66 {
2323 pr99188.url = "github:atemu/nixpkgs/giara-init"; #||
2424 pr96368.url = "github:islandusurper/nixpkgs/lbry-desktop"; #||
2525
26 nix.url = "github:nixos/nix/progress-bar"; #|- Nix
27 #nix.inputs.nixpkgs.follows = "master"; #| a util-linux change breaks this branch
26 nix.url = "github:nixos/nix/progress-bar"; #|- Nix
27 nix-ipfs.url = "github:obsidiansystems/nix/ipfs-develop"; #| ^^^IPFS
2828
2929 dwarffs.url = "github:edolstra/dwarffs"; #|- Dwarffs
3030 dwarffs.inputs.nix.follows = "/nix"; #|
5656 construct.inputs.nixpkgs.follows = "/large"; #|
5757
5858 apparmor.url = "github:bqv/apparmor-nix"; #|- Apparmor
59
60 nix-ipfs.url = "github:obsidiansystems/nix/ipfs-develop"; # NixIPFS
6159
6260 emacs.url = "github:nix-community/emacs-overlay"; # Emacs-overlay
6361
232230 });
233231 inherit (inputs.nix.packages.${system}) nix-static;
234232 nix-ipfs = inputs.nix-ipfs.packages.${system}.nix;
233 nix-ipfs-static = inputs.nix-ipfs.packages.${system}.nix-static;
235234 })
236235 inputs.guix.overlay
237236 inputs.construct.overlay (final: prev: {
351350 environment.pathsToLink = [ "/share/bios" ];
352351 networking = { inherit hostName; };
353352
354 nix.package = pkgs.nixFlakes;
353 nix.package = lib.mkDefault pkgs.nixFlakes;
355354 nix.registry = lib.mapAttrs (id: flake: {
356355 inherit flake;
357356 from = { inherit id; type = "indirect"; };
5353
5454 powerManagement.cpuFreqGovernor = lib.mkDefault "ondemand";
5555
56 nix.package = lib.mkForce pkgs.nix-ipfs;
56 nix.package = pkgs.nix-ipfs;
5757
5858 nix.maxJobs = lib.mkDefault 4;
5959 nix.buildMachines = [ {
121121
122122 headless = true;
123123
124 nix.package = pkgs.nix-ipfs;
124125 nix.gc.automatic = false;
125126 nix.gc.dates = "05:00";
126127 nix.gc.options = "";
131132 nix.extraOptions = with usr.units; ''
132133 min-free = ${toString (gigabytes 128)}
133134 builders-use-substitutes = true
135 extra-substituters = ipfs://
134136 '';
135137
136138 #powerManagement.cpuFreqGovernor = lib.mkDefault "powersave";