tvl-depot/users/sterni/machines/edwin/default.nix
Vincent Ambo e778a33710 chore(3p/sources): bump channels & overlays (2023-10-04)
nixpkgs changed something in how it deals with configuration of the
package set itself when that is externally instantiated (like in
depot)

It seems like we can work around this mostly by just ... deleting some
code, as all instances of this were for allowing unfree code, which
we've already set on the top-level anyways.

* //users/sterni: fix nixpkgs config assertion to point at
  pkgs.config

* //users/wpcarro: disable locate service, which is broken in nixpkgs

Change-Id: Iacf6f1c8fd5b5289e7265e155d74f8269a858ceb
Reviewed-on: https://cl.tvl.fyi/c/depot/+/9541
Reviewed-by: sterni <sternenseemann@systemli.org>
Reviewed-by: wpcarro <wpcarro@gmail.com>
Reviewed-by: grfn <grfn@gws.fyi>
Tested-by: BuildkiteCI
Autosubmit: tazjin <tazjin@tvl.su>
Reviewed-by: tazjin <tazjin@tvl.su>
2023-10-08 20:56:43 +00:00

87 lines
1.9 KiB
Nix

{ config, lib, pkgs, depot, ... }:
{
imports = [
# Third party modules we use
"${depot.third_party.agenix.src}/modules/age.nix"
# These modules touch things related to booting (filesystems, initrd network…)
./hardware.nix
./network.nix
# These modules configure services, websites etc.
../../modules/disk-checkup.nix
./minecraft.nix
./gopher.nix
./http/sterni.lv.nix
./http/code.sterni.lv.nix
./http/flipdot.openlab-augsburg.de.nix
./http/likely-music.sterni.lv.nix
];
config = {
time.timeZone = "Europe/Berlin";
nix = {
package = pkgs.nix_2_3;
settings = {
trusted-public-keys = lib.mkAfter [
"headcounter.org:/7YANMvnQnyvcVB6rgFTdb8p5LG1OTXaO+21CaOSBzg="
];
substituters = lib.mkAfter [
"https://hydra.build"
];
};
};
tvl.cache.enable = true;
services = {
journald.extraConfig = ''
SystemMaxUse=1024M
'';
openssh.enable = true;
};
security.acme = {
defaults.email = builtins.getAttr "email" (
builtins.head (
builtins.filter (attrs: attrs.username == "sterni") depot.ops.users
)
);
acceptTerms = true;
};
programs = {
fish.enable = true;
mosh.enable = true;
tmux.enable = true;
};
environment.systemPackages = [
pkgs.weechat
pkgs.wget
pkgs.git
pkgs.stow
pkgs.htop
pkgs.foot.terminfo
pkgs.vim
];
users = {
users = {
root.openssh.authorizedKeys.keys = depot.users.sterni.keys.all;
lukas = {
isNormalUser = true;
extraGroups = [ "wheel" "http" "git" ];
openssh.authorizedKeys.keys = depot.users.sterni.keys.all;
shell = "${pkgs.fish}/bin/fish";
};
};
};
nix.settings.trusted-users = [
"lukas"
];
system.stateVersion = "20.09";
};
}