diff options
author | Vincent Ambo <mail@tazj.in> | 2021-04-19T21·58+0200 |
---|---|---|
committer | tazjin <mail@tazj.in> | 2021-04-20T10·43+0000 |
commit | 5f19e8e6a73f7d76fa4bb62036891e824b64b515 (patch) | |
tree | d108bb45411c1757bc2dc22f5b7522edacab00f6 /users/tazjin/nixos/camden/default.nix | |
parent | d485ebf01a7e554bd8d43fb17e4a19d6145a6a6b (diff) |
refactor(ops/nixos): Ensure that pkgs == depot.third_party.nixpkgs r/2527
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 <sternenseemann@systemli.org>
Diffstat (limited to 'users/tazjin/nixos/camden/default.nix')
-rw-r--r-- | users/tazjin/nixos/camden/default.nix | 20 |
1 files changed, 5 insertions, 15 deletions
diff --git a/users/tazjin/nixos/camden/default.nix b/users/tazjin/nixos/camden/default.nix index eae359ccec1b..ec72377f4a6e 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 ]; }; |