add base module w/ automatic gc

This commit is contained in:
James Walker 2022-11-09 23:24:40 -05:00
parent 16d29169e0
commit da846292a6
Signed by: walkah
GPG Key ID: 3C127179D6086E93
5 changed files with 24 additions and 9 deletions

18
flake.lock generated
View File

@ -141,11 +141,11 @@
"utils": "utils_2"
},
"locked": {
"lastModified": 1667898954,
"narHash": "sha256-VqHVeoxcOl9M6yQ+LV3yTWMb0h5Rl5yixn9PCY/MJJo=",
"lastModified": 1667981810,
"narHash": "sha256-p27zd5M+OkfND46gzbGkaHlNBZsYe95M48OJuFeuuSY=",
"owner": "nix-community",
"repo": "home-manager",
"rev": "d20e3d070c78271356a2d5d73c01f1de94586087",
"rev": "6ce3493a3c5c6a8f4cfa6f5f88723272e0cfd335",
"type": "github"
},
"original": {
@ -156,11 +156,11 @@
},
"nixos-hardware": {
"locked": {
"lastModified": 1667768008,
"narHash": "sha256-PGbX0s2hhXGnZDFVE6UIhPSOf5YegpWs5dUXpT/14F0=",
"lastModified": 1668005176,
"narHash": "sha256-1Z6ysp8I7NvK8ccL0+r8GI5mxzVqhPLVCI01uPg1ul4=",
"owner": "NixOS",
"repo": "nixos-hardware",
"rev": "f6483e0def85efb9c1e884efbaff45a5e7aabb34",
"rev": "909f0259470f6e9edea71f281410ef25bfa274ee",
"type": "github"
},
"original": {
@ -220,11 +220,11 @@
},
"nixpkgs_3": {
"locked": {
"lastModified": 1667939680,
"narHash": "sha256-nu3zSaTsdhjSs0F8WTzFBlJ9Q2tNaw7A1EIPRhniqnw=",
"lastModified": 1667969101,
"narHash": "sha256-GL53T705HO7Q/KVfbb5STx8AxFs8YgaGY8pvAZC+O7U=",
"owner": "NixOS",
"repo": "nixpkgs",
"rev": "9f1f990aee8ca8bc847bf41feabe0d91d8a59dc4",
"rev": "bbf77421ac51a7c93f5f0f760da99e4dbce614fa",
"type": "github"
},
"original": {

View File

@ -6,6 +6,7 @@
./hardware-configuration.nix
nixos-hardware.nixosModules.raspberry-pi-4
../../modules/base
../../modules/ipfs/cluster.nix
../../modules/sops
];

View File

@ -4,6 +4,7 @@
./hardware-configuration.nix
../../users
../../modules/base
../../modules/coredns
../../modules/code-server
../../modules/drone

View File

@ -4,6 +4,7 @@
./networking.nix # generated at runtime by nixos-infect
../../users
../../modules/base
../../modules/coredns
../../modules/code-server/nginx.nix
../../modules/drone/nginx.nix

12
modules/base/default.nix Normal file
View File

@ -0,0 +1,12 @@
{ pkgs, config, ... }: {
environment.systemPackages = with pkgs; [
inetutils
vim
];
nix = {
gc = {
automatic = true;
persistent = true;
};
};
}