Skip to content

Commit

Permalink
feat(nixos): remove cachixe (#13)
Browse files Browse the repository at this point in the history
it wastes more time than it saves

Signed-off-by: Carlos Alexandro Becker <caarlos0@users.noreply.github.com>
  • Loading branch information
caarlos0 committed Jan 3, 2024
1 parent 0486218 commit 586dc3b
Show file tree
Hide file tree
Showing 5 changed files with 0 additions and 119 deletions.
8 changes: 0 additions & 8 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -28,11 +28,3 @@ task update apply
```sh
nix-collect-garbage
```

---

Check cache:

```bash
curl http://cachixe.local/$(readlink -f $(which fish) | cut -c12-43).narinfo
```
19 changes: 0 additions & 19 deletions flake.nix
Original file line number Diff line number Diff line change
Expand Up @@ -62,25 +62,6 @@
in
{
nixosConfigurations = {
cachixe = nixpkgs.lib.nixosSystem {
system = "x86_64-linux";
modules = [
{ nixpkgs.overlays = overlays; }
./machines/cachixe
home-manager.nixosModules.home-manager
{
home-manager.useGlobalPkgs = true;
home-manager.useUserPackages = true;
home-manager.users.carlos = {
imports = [
./modules/home.nix
./modules/nixos.nix
./modules/shell.nix
];
};
}
];
};
media = nixpkgs.lib.nixosSystem {
system = "x86_64-linux";
modules = [
Expand Down
45 changes: 0 additions & 45 deletions machines/cachixe/default.nix

This file was deleted.

20 changes: 0 additions & 20 deletions machines/shared.nix
Original file line number Diff line number Diff line change
@@ -1,7 +1,4 @@
{ pkgs, ... }:
let
cachixe = (pkgs.callPackage ../packages/cachixe.nix { });
in
{
imports =
[
Expand Down Expand Up @@ -39,15 +36,6 @@ in
LC_TIME = "pt_BR.UTF-8";
};

# Configure keymap in X11
services.xserver = {
layout = "us";
xkbVariant = "";
};

# Enable automatic login for the user.
services.getty.autologinUser = "carlos";

security.sudo.extraRules = [
{
users = [ "carlos" ];
Expand Down Expand Up @@ -80,16 +68,13 @@ in
package = pkgs.nixFlakes;
extraOptions = ''
experimental-features = nix-command flakes
post-build-hook = ${cachixe}/bin/upload-to-cachixe
'';
settings = {
auto-optimise-store = true;
substituters = [
"http://cachixe.local"
"https://nix-community.cachix.org"
];
trusted-public-keys = [
"cachixe.local:qU9rh1z3nuIFocG7aBf/Uqgh7znVZc7Nsb/ZiG2cYZ4="
"nix-community.cachix.org-1:mB9FSh9qf2dCimDSUo8Zy7bkq5CX+/rkCWyvRCYg3Fs="
];
trusted-users = [
Expand All @@ -105,11 +90,6 @@ in
};
};

networking.extraHosts =
''
192.168.1.19 cachixe.local
'';

environment.systemPackages = with pkgs; [
cachix
coreutils
Expand Down
27 changes: 0 additions & 27 deletions packages/cachixe.nix

This file was deleted.

0 comments on commit 586dc3b

Please sign in to comment.