- lockfile updated
- Working with Hydra
- Emacs packages
- Workaround for nix/git
This commit is contained in:
Andrea Ciceri 2022-06-05 14:51:20 +02:00
parent 28f14cab2e
commit 3411b09ab0
No known key found for this signature in database
GPG key ID: A1FC89532D1C5654
5 changed files with 36 additions and 7 deletions

View file

@ -130,7 +130,6 @@
transmission = {
enable = true;
port = 9091;
# the following json is merged to this attrset, it must have `rpc-username` and `rpc-password`
credentialsFile = "/mnt/archivio/transmission/credentials.json";
settings = {
@ -138,6 +137,7 @@
incomplete-dir = "/mnt/archivio/transmission/.incomplete";
incomplete-dir-enabled = true;
rpc-port = 9091;
rpc-whitelist-enabled = false;
rpc-host-whitelist-enabled = false;
rpc-authentication-required = true;
@ -268,7 +268,7 @@
ydnsUpdater = pkgs.writeScriptBin "ydnsUpdater" ''
#!${pkgs.stdenv.shell}
USER="andrea.ciceri@autistici.org"
PASSWORD=$(${pkgs.stdenv}/bin/cat /home/ccr/.ydns-password)
PASSWORD=$(cat /home/ccr/.ydns-password)
DOMAIN="ccr.ydns.eu"
for SUBDOMAIN in "books" "music" "sync" "torrent" "gate" "cam"

View file

@ -68,11 +68,22 @@
};
systemd.services.nix-daemon.serviceConfig = {
LimitNOFILE = lib.mkForce 131072; # should help with fds errors due to experimental feature `ca-derivations`
LimitNOFILE = lib.mkForce "Infinity"; # 131072; # should help with fds errors due to experimental feature `ca-derivations`
};
networking.firewall = {
enable = true;
allowPing = true;
};
services.hydra = {
enable = true;
hydraURL = "http://localhost:3000"; # externally visible URL
notificationSender = "hydra@localhost"; # e-mail of hydra service
# a standalone hydra will require you to unset the buildMachinesFiles list to avoid using a nonexistant /etc/nix/machines
buildMachinesFiles = [ ];
# you will probably also want, otherwise *everything* will be built from scratch
useSubstitutes = true;
};
}

View file

@ -9,6 +9,12 @@ emacsWithPackages (
) ++ (
with epkgs.melpaPackages; [
aggressive-indent
pkgs.emacs28Packages.tree-sitter-langs
tree-sitter
# ts-fold
tree-edit
evil-tree-edit
pkgs.emacs28Packages.tsc
all-the-icons
company
company-nixos-options

View file

@ -8,27 +8,28 @@ in
environment = {
systemPackages = with pkgs; [
#skim
bat
bat-extras.batman
binutils
bottom
coreutils
curl
dnsutils
dosfstools
fd
git
htop
glances
bottom
gptfdisk
htop
iputils
jq
lsof
manix
moreutils
nix-index
nmap
ripgrep
#skim
tealdeer
tmux
usbutils
@ -59,7 +60,7 @@ in
autoOptimiseStore = true;
useSandbox = true;
allowedUsers = [ "@wheel" ];
trustedUsers = [ "root" "@wheel" ];
trustedUsers = [ "root" "@wheel" "hydra" "hydra-www" ];
};
services.earlyoom.enable = true;

View file

@ -5,4 +5,15 @@
password = "nixos";
shell = pkgs.zsh;
};
# FIXME: (temporary?) workaround for https://github.com/NixOS/nixpkgs/issues/169193
home-manager.users.ccr.programs.git = {
enable = true;
extraConfig.safe.directory = "/home/ccr/fleet";
};
home-manager.users.root.programs.git = {
enable = true;
extraConfig.safe.directory = "/home/ccr/fleet";
};
}