Skip to content

Commit

Permalink
Move unstable to main config, add SSH aliases to read local config
Browse files Browse the repository at this point in the history
  • Loading branch information
ners committed Jun 9, 2021
1 parent a34ce04 commit e62d6b3
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 8 deletions.
7 changes: 7 additions & 0 deletions configuration.nix
Original file line number Diff line number Diff line change
@@ -1,4 +1,8 @@
{ config, pkgs, ... }:
let
unstableTarball = fetchTarball https://github.com/NixOS/nixpkgs/archive/nixos-unstable.tar.gz;
unstableOverride = import ( unstableTarball ) { config = config.nixpkgs.config; };
in
{
imports = [
./bootloader.nix
Expand Down Expand Up @@ -33,6 +37,9 @@
nixpkgs.config = {
allowUnfree = true;
allowBroken = false;
packageOverrides = pkgs: {
unstable = unstableOverride;
};
};

networking = {
Expand Down
8 changes: 0 additions & 8 deletions vim.nix
Original file line number Diff line number Diff line change
@@ -1,13 +1,5 @@
{ config, pkgs, ... }:
let
unstableTarball = fetchTarball https://github.com/NixOS/nixpkgs/archive/nixos-unstable.tar.gz;
unstableOverride = import ( unstableTarball ) { config = config.nixpkgs.config; };
in
{
nixpkgs.config.packageOverrides = pkgs: {
unstable = unstableOverride;
};

environment.systemPackages = with pkgs; [
vimPlugins.base16-vim
vimPlugins.coc-git
Expand Down
3 changes: 3 additions & 0 deletions zsh.nix
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,9 @@
gvim = "nvim-qt";
make = "make -j$(nproc)";
makevars = "make -pn | grep -A1 '^# makefile' | grep -v '^#\\|^--' | sort | uniq";
scp = "scp -F $HOME/.ssh/config";
ssh = "ssh -F $HOME/.ssh/config";
sshfs = "sshfs -F $HOME/.ssh/config";
};
promptInit = "";
};
Expand Down

0 comments on commit e62d6b3

Please sign in to comment.