diff options
Diffstat (limited to 'nixos/socrates')
-rw-r--r-- | nixos/socrates/default.nix (renamed from nixos/socrates/configuration.nix) | 38 | ||||
-rw-r--r-- | nixos/socrates/hardware.nix | 2 |
2 files changed, 13 insertions, 27 deletions
diff --git a/nixos/socrates/configuration.nix b/nixos/socrates/default.nix index 58b3c64cfee2..d98cdb993300 100644 --- a/nixos/socrates/configuration.nix +++ b/nixos/socrates/default.nix @@ -1,14 +1,6 @@ -{ ... }: - let - # TODO(wpcarro): Instead of importing these dependencies as parameters that - # readTree will expose I need to import these dependencies manually because - # I'm building this using `nixos-rebuild`. When I better understand how to - # build socrates using readTree, prefer defining this as an anonymous - # function. - briefcase = import <briefcase> {}; + briefcase = import /home/wpcarro/briefcase {}; pkgs = briefcase.third_party.pkgs; - trimNewline = x: pkgs.lib.removeSuffix "\n" x; readSecret = x: trimNewline (builtins.readFile ("/etc/secrets/" + x)); in { @@ -72,13 +64,7 @@ in { }; nix = { - # Expose depot as <depot>, nixpkgs as <nixpkgs> - nixPath = [ - "briefcase=/home/wpcarro/briefcase" - "depot=/home/wpcarro/depot" - "nixpkgs=/home/wpcarro/nixpkgs" - ]; - + nixPath = []; trustedUsers = [ "root" "wpcarro" ]; }; @@ -229,16 +215,16 @@ in { enableACME = true; root = briefcase.website.blog; }; - "sandbox.wpcarro.dev" = { - addSSL = true; - enableACME = true; - root = briefcase.website.sandbox; - }; - "learnpianochords.app" = { - addSSL = true; - enableACME = true; - root = briefcase.website.sandbox.learnpianochords; - }; + # "sandbox.wpcarro.dev" = { + # addSSL = true; + # enableACME = true; + # root = briefcase.website.sandbox; + # }; + # "learnpianochords.app" = { + # addSSL = true; + # enableACME = true; + # root = briefcase.website.sandbox.learnpianochords; + # }; "zoo.wpcarro.dev" = { addSSL = true; enableACME = true; diff --git a/nixos/socrates/hardware.nix b/nixos/socrates/hardware.nix index dde14eb1e627..d13ffd7e401d 100644 --- a/nixos/socrates/hardware.nix +++ b/nixos/socrates/hardware.nix @@ -5,7 +5,7 @@ { imports = - [ <nixpkgs/nixos/modules/installer/scan/not-detected.nix> + [ /home/wpcarro/nixpkgs/nixos/modules/installer/scan/not-detected.nix ]; boot.initrd.availableKernelModules = [ "ahci" "xhci_pci" "usbhid" "usb_storage" "sd_mod" "rtsx_pci_sdmmc" ]; |