mirror of
https://github.com/buckley310/nixos-config.git
synced 2024-12-21 19:24:15 +00:00
move NIX_PATH from cli to baseline
This commit is contained in:
parent
96ebc2f60b
commit
f4a7bae858
2 changed files with 14 additions and 11 deletions
|
@ -1,4 +1,9 @@
|
|||
{ config, pkgs, ... }:
|
||||
let
|
||||
sc-scripts = map
|
||||
(x: (pkgs.writeShellScriptBin "sc-${x}" "nixos-rebuild ${x} --refresh --flake github:buckley310/nixos-config"))
|
||||
[ "switch" "build" "boot" ];
|
||||
in
|
||||
{
|
||||
time.timeZone = "US/Eastern";
|
||||
i18n.supportedLocales = [ "en_US.UTF-8/UTF-8" ];
|
||||
|
@ -13,9 +18,14 @@
|
|||
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" ];
|
||||
environment.systemPackages = sc-scripts ++ [
|
||||
(pkgs.runCommand "nixpkgs" { } ''
|
||||
mkdir -p $out/share
|
||||
ln -s ${pkgs.path} $out/share/nixpkgs
|
||||
'')
|
||||
];
|
||||
|
||||
nix.nixPath = [ "nixpkgs=/run/current-system/sw/share/nixpkgs" ];
|
||||
|
||||
systemd.tmpfiles.rules = [
|
||||
"e /nix/var/log - - - 30d"
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
{ config, pkgs, lib, modulesPath, ... }:
|
||||
{ config, pkgs, lib, ... }:
|
||||
let
|
||||
powerlineOpts = [
|
||||
"-mode=flat"
|
||||
|
@ -79,15 +79,8 @@ in
|
|||
echo
|
||||
'')
|
||||
|
||||
(runCommand "nixpkgs" { } ''
|
||||
mkdir -p $out/share
|
||||
ln -s ${modulesPath}/../.. $out/share/nixpkgs
|
||||
'')
|
||||
|
||||
];
|
||||
|
||||
nix.nixPath = [ "nixpkgs=/run/current-system/sw/share/nixpkgs" ];
|
||||
|
||||
environment.etc."pip.conf".text = ''
|
||||
[install]
|
||||
no-warn-script-location = false
|
||||
|
|
Loading…
Reference in a new issue