Skip to content

Commit

Permalink
treewide: completely remove attic
Browse files Browse the repository at this point in the history
  • Loading branch information
soopyc committed Jul 3, 2024
1 parent 4a6bc20 commit 476ada7
Show file tree
Hide file tree
Showing 10 changed files with 21 additions and 84 deletions.
8 changes: 0 additions & 8 deletions .github/workflows/build.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -63,13 +63,5 @@ jobs:
netrc-file = /etc/nix/netrc
experimental-features = nix-command flakes
# - name: Setup attic cache
# uses: ryanccn/[email protected]
# with:
# endpoint: https://nonbunary.soopy.moe
# cache: gensokyo-systems
# token: ${{ secrets.ATTIC_TOKEN }}
# skip-push: ${{ github.event_name == 'pull_request' }}

- name: Build configuration
run: nix run github:Mic92/nix-fast-build -- --no-nom --skip-cached --flake .#nixosConfigurations."${{ matrix.host }}".config.system.build.toplevel
1 change: 0 additions & 1 deletion docs/src/internal/ext-files.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,6 @@ due to the required secure nature of these files, we are unable to include
thses sets of files/directories in this repository.

<!-- These are coincidentally the same length. magic! -->
- `-rw------- /etc/atticd.env`: attic credentials file
- `-r-------- /etc/lego/desec`: acme credentials
- `drwx------ /etc/secureboot`: secureboot keys
- `-r-------- /v/l/forgejo/data/jwt/oauth.pem`: forgejo oauth jwt private key
Expand Down
10 changes: 0 additions & 10 deletions flake.nix
Original file line number Diff line number Diff line change
Expand Up @@ -4,14 +4,10 @@
nixConfig = {
extra-substituters = [
"https://cache.soopy.moe"
"https://nonbunary.soopy.moe/gensokyo-global"
"https://nonbunary.soopy.moe/gensokyo-systems"
];

extra-trusted-public-keys = [
"cache.soopy.moe-1:0RZVsQeR+GOh0VQI9rvnHz55nVXkFardDqfm4+afjPo="
"gensokyo-global:XiCN0D2XeSxF4urFYTprR+1Nr/5hWyydcETwZtPG6Ec="
"gensokyo-systems:r/Wx649dPuQrCN9Pgh3Jic526zQNk3oWMqYJHnob/Ok="
];
allow-import-from-derivation = true;
fallback = true;
Expand Down Expand Up @@ -42,12 +38,6 @@
inputs.nixpkgs.follows = "nixpkgs";
};

attic = {
url = "github:zhaofengli/attic";
# added back because it's gentoo either way
inputs.nixpkgs.follows = "nixpkgs";
};

sops-nix = {
url = "github:Mic92/sops-nix";
inputs.nixpkgs.follows = "nixpkgs";
Expand Down
3 changes: 0 additions & 3 deletions global/programs/misc.nix
Original file line number Diff line number Diff line change
Expand Up @@ -40,9 +40,6 @@
nvd
just
inotify-tools

# attic
inputs.attic.packages.${pkgs.system}.attic-client
];

programs.mtr.enable = true;
Expand Down
3 changes: 0 additions & 3 deletions global/programs/nix/config.nix
Original file line number Diff line number Diff line change
Expand Up @@ -26,18 +26,15 @@ lib.mkMerge [

substituters = [
"https://cache.soopy.moe"
"https://nonbunary.soopy.moe/gensokyo-global/"
];

trusted-substituters = [
"https://cache.soopy.moe"
"https://nonbunary.soopy.moe/gensokyo-global/"
"https://nixpkgs.reverse.proxy.internal.soopy.moe/"
];

trusted-public-keys = [
"cache.soopy.moe-1:0RZVsQeR+GOh0VQI9rvnHz55nVXkFardDqfm4+afjPo="
"gensokyo-global:XiCN0D2XeSxF4urFYTprR+1Nr/5hWyydcETwZtPG6Ec="
];

fallback = true;
Expand Down
1 change: 0 additions & 1 deletion systems/koumakan/configuration.nix
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
{inputs, ...}: {
imports = [
inputs.attic.nixosModules.atticd
inputs.mystia.nixosModules.fixups
inputs.mystia.nixosModules.vmauth

Expand Down
57 changes: 0 additions & 57 deletions systems/koumakan/services/attic.nix

This file was deleted.

1 change: 0 additions & 1 deletion systems/koumakan/services/default.nix
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,6 @@
./scm

# Gensokyo local stuff
./attic.nix
./ftp.nix

# fediverse
Expand Down
1 change: 1 addition & 0 deletions systems/koumakan/services/static-sites/default.nix
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@
./keine.nix
./photography.nix
./assets.nix
./nonbunary.nix
];

# Fallback site
Expand Down
20 changes: 20 additions & 0 deletions systems/koumakan/services/static-sites/nonbunary.nix
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
{_utils, ...}: {
services.nginx.virtualHosts."nonbunary.soopy.moe" = _utils.mkVhost {
locations."/".return = "404";
locations."= /" = _utils.mkNginxFile {
content = ''
<!doctype html>
<html lang="en">
<body>
<svg xmlns="http://www.w3.org/2000/svg" width="300" height="200">
<path fill="#2D2D2D" d="m0,0h300v200H0"/>
<path fill="#9B59D0" d="m0,0h300v150H0"/>
<path fill="#FFFFFF" d="m0,0h300v100H0"/>
<path fill="#FFF433" d="m0,0h300v50H0"/>
</svg>
</body>
</html>
'';
};
};
}

0 comments on commit 476ada7

Please sign in to comment.