enable unfree package
This commit is contained in:
parent
0dc58dccf4
commit
e4d68f509f
|
@ -20,11 +20,20 @@
|
|||
}:
|
||||
let
|
||||
system = "x86_64-linux";
|
||||
overlay-unstable = final: prev: {
|
||||
unstable = import nixpkgs-unstable {
|
||||
system = "x86_64-linux";
|
||||
config.allowUnfree = true;
|
||||
};
|
||||
};
|
||||
pkgs = import nixpkgs {
|
||||
inherit system;
|
||||
config = {
|
||||
allowUnfree = true;
|
||||
};
|
||||
overlays = [
|
||||
overlay-unstable
|
||||
];
|
||||
};
|
||||
in
|
||||
{
|
||||
|
|
|
@ -3,7 +3,7 @@
|
|||
imports = [
|
||||
./common.nix
|
||||
./common/git/git.nix
|
||||
# ./obsidian.nix
|
||||
./obsidian.nix
|
||||
./work-desktop.nix
|
||||
];
|
||||
home.packages = with pkgs; [
|
||||
|
|
|
@ -1,18 +1,4 @@
|
|||
{ config, pkgs, ... }:
|
||||
let
|
||||
unstable = import
|
||||
(builtins.fetchTarball {
|
||||
# Descriptive name to make the store path easier to identify
|
||||
url = "https://github.com/nixos/nixpkgs/archive/942eb9a335b4cd22fa6a7be31c494e53e76f5637.tar.gz";
|
||||
# Commit hash for nixos-unstable as of 2018-09-12
|
||||
# `git ls-remote https://github.com/nixos/nixpkgs nixos-unstable`
|
||||
sha256 = "05390093gl44h8v6pgklwkgbn3vwdhs81shabqmjagq6rg1sh1l5";
|
||||
})
|
||||
# reuse the current configuration
|
||||
{
|
||||
config = config.nixpkgs.config;
|
||||
};
|
||||
in
|
||||
{ pkgs, ... }:
|
||||
{
|
||||
home.packages = with pkgs; [
|
||||
unstable.obsidian
|
||||
|
|
Loading…
Reference in New Issue