From a7566e753628411616a7d53158c62925c8d6a51c Mon Sep 17 00:00:00 2001 From: Sean Buckley Date: Mon, 28 Jun 2021 13:20:20 -0400 Subject: [PATCH] move update-cmds --- modules/baseline.nix | 4 ++++ modules/cli.nix | 6 +----- 2 files changed, 5 insertions(+), 5 deletions(-) diff --git a/modules/baseline.nix b/modules/baseline.nix index 304f905..3ea8fac 100644 --- a/modules/baseline.nix +++ b/modules/baseline.nix @@ -13,6 +13,10 @@ nixpkgs.config.allowUnfree = true; environment.variables.NIXPKGS_ALLOW_UNFREE = "1"; + environment.systemPackages = map + (x: (pkgs.writeShellScriptBin "sc-${x}" "nixos-rebuild ${x} --refresh --flake github:buckley310/nixos-config")) + [ "switch" "build" "boot" ]; + systemd.tmpfiles.rules = [ "e /nix/var/log - - - 30d" "e /home/sean/Downloads - - - 9d" diff --git a/modules/cli.nix b/modules/cli.nix index 8451059..d09b49c 100644 --- a/modules/cli.nix +++ b/modules/cli.nix @@ -8,10 +8,6 @@ let "-git-assume-unchanged-size 0" ]; - update-cmds = map - (x: (pkgs.writeShellScriptBin "sc-${x}" "nixos-rebuild ${x} --refresh --flake github:buckley310/nixos-config")) - [ "switch" "build" "boot" ]; - system-rev = toString config.system.nixos.revision; in @@ -86,7 +82,7 @@ in echo '') - ] ++ update-cmds; + ]; environment.etc."pip.conf".text = '' [install]