Compare commits

...

7 Commits

7 changed files with 22 additions and 26 deletions

View File

@@ -2,7 +2,7 @@
# your system. Help is available in the configuration.nix(5) man page, on # your system. Help is available in the configuration.nix(5) man page, on
# https://search.nixos.org/options and in the NixOS manual (`nixos-help`). # https://search.nixos.org/options and in the NixOS manual (`nixos-help`).
{ config, lib, pkgs, self, paths, keys, ... }: { config, lib, pkgs, paths, keys, ... }:
{ {
# NAS Mounting # NAS Mounting
@@ -16,7 +16,7 @@
nix.gc = { nix.gc = {
automatic = true; automatic = true;
dates = "daily"; # You can also use "daily" or a cron-like spec dates = "daily"; # You can also use "daily" or a cron-like spec
options = "--delete-older-than 7d"; # Keep only 7 days of unreferenced data options = "--delete-older-than 30d";
}; };
nix.settings = { nix.settings = {
@@ -153,8 +153,6 @@
}; };
}; };
fileSystems."/".neededForBoot = true;
# Public host ssh key (kept in sync with the private one) # Public host ssh key (kept in sync with the private one)
environment.etc."ssh/ssh_host_ed25519_key.pub".text = environment.etc."ssh/ssh_host_ed25519_key.pub".text =
"${keys.hosts.lazyworkhorse.main}"; "${keys.hosts.lazyworkhorse.main}";
@@ -164,6 +162,19 @@
services.zfs.autoSnapshot.enable = true; services.zfs.autoSnapshot.enable = true;
services.zfs.autoScrub.enable = true; services.zfs.autoScrub.enable = true;
# hardware.graphics = {
# enable = true;
# enable32Bit = true;
# extraPackages = with pkgs; [
# rocmPackages.clr
# rocmPackages.rocblas
# rocmPackages.rocrand
# rocmPackages.rocminfo
# rocmPackages.hipcc
# rocmPackages.hiprt
# ];
# };
# Open ports in the firewall. # Open ports in the firewall.
# networking.firewall.allowedTCPPorts = [ ... ]; # networking.firewall.allowedTCPPorts = [ ... ];
# networking.firewall.allowedUDPPorts = [ ... ]; # networking.firewall.allowedUDPPorts = [ ... ];

View File

@@ -9,7 +9,7 @@
hosts = { hosts = {
lazyworkhorse = { lazyworkhorse = {
main = "ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAAINmXqD+bBveCYf4khmARA0uaCzkBOUIE077ZrInLNs1O"; main = "ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAAIBmPv4JssvhHGIx85UwFxDSrL5anR4eXB/cd9V2i9wdW";
github = ""; github = "";
gitea = ""; gitea = "";
bootstrap = "age1r796v2uldtspawyh863pks74sd2pwcan8j4e4pjzsvkmr3vjja9qpz5ste"; bootstrap = "age1r796v2uldtspawyh863pks74sd2pwcan8j4e4pjzsvkmr3vjja9qpz5ste";

View File

@@ -1,14 +1,9 @@
{ config, pkgs, self, ... }: { config, pkgs, self, ... }:
let let
network_compose_dir = pkgs.stdenv.mkDerivation { network_compose_dir = builtins.path {
name = "network_compose_dir"; name = "network_compose_dir";
src = self + "/assets/compose/network"; path = self + "/assets/compose/network";
dontUnpack = true;
installPhase = ''
mkdir -p $out
cp -r $src/* $out/
'';
}; };
in in
{ {

View File

@@ -1,14 +1,9 @@
{ config, pkgs, self, ... }: { config, pkgs, self, ... }:
let let
passwordmanager_compose_dir = pkgs.stdenv.mkDerivation { passwordmanager_compose_dir = builtins.path {
name = "passwordmanager_compose_dir"; name = "passwordmanager_compose_dir";
src = self + "/assets/compose/passwordmanager"; path = self + "/assets/compose/passwordmanager";
dontUnpack = true;
installPhase = ''
mkdir -p $out
cp -r $src/* $out/
'';
}; };
in in
{ {

View File

@@ -1,14 +1,9 @@
{ config, pkgs, self, ... }: { config, pkgs, self, ... }:
let let
versioncontrol_compose_dir = pkgs.stdenv.mkDerivation { versioncontrol_compose_dir = builtins.path {
name = "versioncontrol_compose_dir"; name = "versioncontrol_compose_dir";
src = self + "/assets/compose/versioncontrol"; path = self + "/assets/compose/versioncontrol";
dontUnpack = true;
installPhase = ''
mkdir -p $out
cp -r $src/* $out/
'';
}; };
in in
{ {

Binary file not shown.