From 5f19e8e6a73f7d76fa4bb62036891e824b64b515 Mon Sep 17 00:00:00 2001 From: Vincent Ambo Date: Mon, 19 Apr 2021 23:58:11 +0200 Subject: refactor(ops/nixos): Ensure that pkgs == depot.third_party.nixpkgs This is currently done ad-hoc in a bunch of our systems, but we should just do it centrally. The commit message is a bit of a lie, as this doesn't yet update grfn's systems. Change-Id: Ic771c1a1da78ec5de9cffbf94c296dce5e11fd84 Reviewed-on: https://cl.tvl.fyi/c/depot/+/3047 Tested-by: BuildkiteCI Reviewed-by: sterni --- users/tazjin/nixos/camden/default.nix | 20 +++++--------------- 1 file changed, 5 insertions(+), 15 deletions(-) (limited to 'users/tazjin/nixos/camden') diff --git a/users/tazjin/nixos/camden/default.nix b/users/tazjin/nixos/camden/default.nix index eae359ccec..ec72377f4a 100644 --- a/users/tazjin/nixos/camden/default.nix +++ b/users/tazjin/nixos/camden/default.nix @@ -2,10 +2,6 @@ { depot, pkgs, lib, ... }: config: let - nixpkgs = import pkgs.path { - config.allowUnfree = true; - }; - nginxRedirect = { from, to, acmeHost }: { serverName = from; useACMEHost = acmeHost; @@ -83,11 +79,6 @@ in lib.fix(self: { nix = { maxJobs = lib.mkDefault 4; - nixPath = [ - "depot=/home/tazjin/depot" - "nixpkgs=${pkgs.path}" - ]; - trustedUsers = [ "root" "tazjin" ]; binaryCaches = [ @@ -98,7 +89,6 @@ in lib.fix(self: { "tazjin.cachix.org-1:IZkgLeqfOr1kAZjypItHMg1NoBjm4zX9Zzep8oRSh7U=" ]; }; - nixpkgs.pkgs = nixpkgs; powerManagement.cpuFreqGovernor = lib.mkDefault "powersave"; @@ -122,7 +112,7 @@ in lib.fix(self: { programs.mosh.enable = true; fonts = { - fonts = [ nixpkgs.jetbrains-mono ]; + fonts = [ pkgs.jetbrains-mono ]; fontconfig.defaultFonts.monospace = [ "JetBrains Mono" ]; }; @@ -134,7 +124,7 @@ in lib.fix(self: { ]) ++ # programs from nixpkgs - (with nixpkgs; [ + (with pkgs; [ bat curl direnv @@ -158,7 +148,7 @@ in lib.fix(self: { isNormalUser = true; uid = 1000; extraGroups = [ "git" "wheel" "quassel" "video" ]; - shell = nixpkgs.fish; + shell = pkgs.fish; }; # Set up a user & group for general git shenanigans @@ -183,7 +173,7 @@ in lib.fix(self: { # anymore, all solution attempts have failed, so here's a # brute-force fix. systemd.services.fix-nginx = { - script = "${nixpkgs.coreutils}/bin/chown -R nginx: /var/spool/nginx /var/cache/nginx"; + script = "${pkgs.coreutils}/bin/chown -R nginx: /var/spool/nginx /var/cache/nginx"; serviceConfig = { User = "root"; @@ -253,7 +243,7 @@ in lib.fix(self: { services.nginx = { enable = true; enableReload = true; - package = with nixpkgs; nginx.override { + package = with pkgs; nginx.override { modules = [ nginxModules.rtmp ]; }; -- cgit 1.4.1