enable unfree package

This commit is contained in:
Andreas Zweili 2021-12-11 17:20:54 +01:00
parent 0dc58dccf4
commit e4d68f509f
3 changed files with 11 additions and 16 deletions

View File

@ -20,11 +20,20 @@
}: }:
let let
system = "x86_64-linux"; system = "x86_64-linux";
overlay-unstable = final: prev: {
unstable = import nixpkgs-unstable {
system = "x86_64-linux";
config.allowUnfree = true;
};
};
pkgs = import nixpkgs { pkgs = import nixpkgs {
inherit system; inherit system;
config = { config = {
allowUnfree = true; allowUnfree = true;
}; };
overlays = [
overlay-unstable
];
}; };
in in
{ {

View File

@ -3,7 +3,7 @@
imports = [ imports = [
./common.nix ./common.nix
./common/git/git.nix ./common/git/git.nix
# ./obsidian.nix ./obsidian.nix
./work-desktop.nix ./work-desktop.nix
]; ];
home.packages = with pkgs; [ home.packages = with pkgs; [

View File

@ -1,18 +1,4 @@
{ config, pkgs, ... }: { 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
{ {
home.packages = with pkgs; [ home.packages = with pkgs; [
unstable.obsidian unstable.obsidian