Skip to content

Commit

Permalink
Remove attic (#20)
Browse files Browse the repository at this point in the history
  • Loading branch information
ethnt authored Dec 24, 2023
1 parent 1706c46 commit d0a3b14
Show file tree
Hide file tree
Showing 12 changed files with 27 additions and 305 deletions.
2 changes: 1 addition & 1 deletion Justfile
Original file line number Diff line number Diff line change
Expand Up @@ -25,4 +25,4 @@ repl:
nix repl --extra-experimental-features repl-flake .#

format:
treefmt
nix fmt
109 changes: 8 additions & 101 deletions flake.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

5 changes: 0 additions & 5 deletions flake.nix
Original file line number Diff line number Diff line change
Expand Up @@ -6,14 +6,12 @@
"https://nix-community.cachix.org"
"https://e10.cachix.org"
"https://numtide.cachix.org"
"https://attic.e10.camp/e10"
];

extra-trusted-public-keys = [
"nix-community.cachix.org-1:mB9FSh9qf2dCimDSUo8Zy7bkq5CX+/rkCWyvRCYg3Fs="
"e10.cachix.org-1:/++Tmo/ghEqnLwsQJdXn04c262agRCK5PaPYz8NcVfo="
"numtide.cachix.org-1:2ps1kLBUWjxIneOy1Ik6cQjb41X0iXVXeHigGmycPPE="
"attic.e10.camp-e10:GRxL2EezM+0vZXpa9fePFqTM1qstxiV56tc5K3eDugk="
];
};

Expand All @@ -40,9 +38,6 @@
colmena.url = "github:zhaofengli/colmena";
colmena.inputs.nixpkgs.follows = "nixpkgs";

attic.url = "github:zhaofengli/attic";
attic.inputs.nixpkgs.follows = "nixpkgs";

devenv.url = "github:cachix/devenv";
devenv.inputs.nixpkgs.follows = "nixpkgs";

Expand Down
13 changes: 0 additions & 13 deletions hosts/gateway/configuration.nix
Original file line number Diff line number Diff line change
Expand Up @@ -38,19 +38,6 @@
port = hosts.gateway.config.services.headscale.port;
};

"attic.e10.camp" = mkVirtualHost {
host = hosts.omnibus;
port = 8080;
extraConfig = ''
client_header_buffer_size 64k;
'';
extraSettings = {
http3 = false;
http2 = false;
kTLS = true;
};
};

"blocky.e10.camp" = mkVirtualHost {
host = hosts.controller;
port = hosts.controller.config.services.blocky.settings.ports.http;
Expand Down
10 changes: 7 additions & 3 deletions hosts/omnibus/configuration.nix
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
{ config, suites, profiles, ... }: {
{ config, pkgs, suites, profiles, ... }: {
imports = with suites;
core ++ homelab ++ proxmox-vm ++ [
profiles.telemetry.smartd
Expand All @@ -10,8 +10,6 @@
profiles.users.ethan
profiles.users.proxmox
profiles.databases.postgresql.default
profiles.databases.postgresql.atticd
profiles.services.atticd.default
profiles.power.client.tripp-lite
] ++ [ ./hardware-configuration.nix ./disk-config.nix ];

Expand Down Expand Up @@ -64,5 +62,11 @@
paths = [ "/data/files" ];
};

programs.fish.shellAliases.iotop = ''
bash -c "sudo sysctl kernel.task_delayacct=1 && sudo ${
pkgs.lib.getExe pkgs.iotop
} ; sudo sysctl kernel.task_delayacct=0"
'';

system.stateVersion = "23.11";
}
13 changes: 3 additions & 10 deletions modules/development/shell.nix
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{ inputs, ... }: {
imports = [ inputs.devenv.flakeModule ];

perSystem = { inputs', pkgs, ... }: {
perSystem = { pkgs, ... }: {
devenv.shells.default = _:
{
# TODO: Move this to be within the `keys/` directory?
Expand All @@ -13,20 +13,13 @@
export ${key}=$(${sops} -d --extract '["${key}"]' ./secrets.json)
'';
in ''
export SOPS_AGE_KEY_FILE="/Users/$USER/.config/sops/age/keys.txt"
export SOPS_AGE_KEY_FILE="$HOME/.config/sops/age/keys.txt"
${setSopsValueToEnvironmentVariable "AWS_ACCESS_KEY_ID"}
${setSopsValueToEnvironmentVariable "AWS_SECRET_ACCESS_KEY"}
'';

packages = with pkgs; [
cachix
deadnix
just
statix
sops
inputs'.attic.packages.attic
];
packages = with pkgs; [ cachix deadnix just statix sops ];
} // {
containers = pkgs.lib.mkForce { };
};
Expand Down
24 changes: 0 additions & 24 deletions modules/nixos/services/atticd/default.nix

This file was deleted.

14 changes: 3 additions & 11 deletions modules/profiles/core/caching.nix
Original file line number Diff line number Diff line change
@@ -1,20 +1,12 @@
{ inputs, pkgs, ... }: {
environment.systemPackages = with pkgs; [
inputs.attic.packages.x86_64-linux.attic
cachix
];
{ pkgs, ... }: {
environment.systemPackages = with pkgs; [ cachix ];

nix.settings = {
substituters = [
"https://e10.cachix.org"
"https://numtide.cachix.org"
"https://attic.e10.camp"
];
substituters = [ "https://e10.cachix.org" "https://numtide.cachix.org" ];

trusted-public-keys = [
"e10.cachix.org-1:/++Tmo/ghEqnLwsQJdXn04c262agRCK5PaPYz8NcVfo="
"numtide.cachix.org-1:2ps1kLBUWjxIneOy1Ik6cQjb41X0iXVXeHigGmycPPE="
"attic.e10.camp-e10:GRxL2EezM+0vZXpa9fePFqTM1qstxiV56tc5K3eDugk="
];
};
}
9 changes: 0 additions & 9 deletions modules/profiles/databases/postgresql/atticd.nix

This file was deleted.

10 changes: 5 additions & 5 deletions modules/profiles/networking/blocky.nix
Original file line number Diff line number Diff line change
Expand Up @@ -85,11 +85,11 @@
}";
};
ede.enable = true;
queryLog = {
type = "postgresql";
target = "postgres://blocky?host=/run/postgresql";
logRetentionDays = 90;
};
# queryLog = {
# type = "postgresql";
# target = "postgres://blocky?host=/run/postgresql";
# logRetentionDays = 90;
# };
};
};

Expand Down
Loading

0 comments on commit d0a3b14

Please sign in to comment.