From 59f74814111045b6d74d2a8f5b4f4bfbd1cacd85 Mon Sep 17 00:00:00 2001 From: William Carroll Date: Mon, 17 Aug 2020 10:08:32 +0100 Subject: Revise previous opinions about absolute paths GT Unforeseen problem: `buildkite-agent` runs its builds in a separate directory, so if I want the `nix-build` command to build the newly checked out code, I need to set to the CWD. --- nixos/socrates/default.nix | 2 +- nixos/socrates/hardware.nix | 2 +- nixos/socrates/rebuild.nix | 11 ----------- 3 files changed, 2 insertions(+), 13 deletions(-) delete mode 100644 nixos/socrates/rebuild.nix (limited to 'nixos') diff --git a/nixos/socrates/default.nix b/nixos/socrates/default.nix index d98cdb993300..ebb62036bd8f 100644 --- a/nixos/socrates/default.nix +++ b/nixos/socrates/default.nix @@ -1,5 +1,5 @@ let - briefcase = import /home/wpcarro/briefcase {}; + briefcase = import {}; pkgs = briefcase.third_party.pkgs; trimNewline = x: pkgs.lib.removeSuffix "\n" x; readSecret = x: trimNewline (builtins.readFile ("/etc/secrets/" + x)); diff --git a/nixos/socrates/hardware.nix b/nixos/socrates/hardware.nix index d13ffd7e401d..dde14eb1e627 100644 --- a/nixos/socrates/hardware.nix +++ b/nixos/socrates/hardware.nix @@ -5,7 +5,7 @@ { imports = - [ /home/wpcarro/nixpkgs/nixos/modules/installer/scan/not-detected.nix + [ ]; boot.initrd.availableKernelModules = [ "ahci" "xhci_pci" "usbhid" "usb_storage" "sd_mod" "rtsx_pci_sdmmc" ]; diff --git a/nixos/socrates/rebuild.nix b/nixos/socrates/rebuild.nix deleted file mode 100644 index 1ab4f5133d0b..000000000000 --- a/nixos/socrates/rebuild.nix +++ /dev/null @@ -1,11 +0,0 @@ -{ pkgs, ... }: - -pkgs.writeShellScriptBin "rebuild" '' - set -ue - sudo nixos-rebuild \ - -I nixos-config=/home/wpcarro/briefcase/nixos/socrates/configuration.nix \ - -I nixpkgs=/home/wpcarro/nixpkgs \ - -I depot=/home/wpcarro/depot \ - -I briefcase=/home/wpcarro/briefcase \ - switch -'' -- cgit 1.4.1