berbiche / dotfiles Goto Github PK
View Code? Open in Web Editor NEWMy messy system configuration setup
License: MIT License
My messy system configuration setup
License: MIT License
Hi! I've struggled to properly set up darkman
in my NixOS config, and eventually found your dotfiles here. They've been very helpful, so I was wondering if you'd be open to upstreaming your darkman
home-manager module? I'm happy to fully credit you while I do the upstreaming and assign myself as maintainer if you don't wanna do any work. I just think it would benefit others if it were directly in home-manager. But I also understand if you'd rather not, it's your work.
By the way, thanks for writing and open-sourcing that module, as I said it was very helpful.
user/home-manager/programs/*
configurations
This is an issue I encountered in my configuration that had a very simple fix for a byzantine error message (the error message did not hint at the issue at all).
I thought this would benefit others searching on Google/DuckDuckGo/etc.
When using home-manager through NixOS with
# configuration.nix
{
imports = [ (builtins.fetchTarball "https://github.com/rycee/home-manager/archive/master.tar.gz") ];
home-manager.user.my-user-name = /a/path/to/my-user-name/home-manager/configuration;
}
where home.nix
in the folder imports overlays like
# home.nix
{ config, pkgs, lib, ... }:
{
nixpkgs.overlays = [ (import ./overlay.nix) ];
xdg.configFile."nixpkgs/overlays/overlay.nix".source = ./overlay.nix;
}
and overlay.nix
defined as a function
# overlay.nix
{ pkgs, ... }:
let
my-overlay = self: super {
# blah blah blah
};
in
my-overlay
then an infinite recursion
error happens.
The issue is that the overlay is import
ed without passing the pkgs
variable like { inherit pkgs; }
which causes the overlay to refer to itself when Nix converge (is that the right word?) the package set and evaluates the overlay.
To resolve the issue, one can either
{ pkgs, ... }:
in the overlay and replace uses of pkgs
with self
(or whatever you defined self
as) where appropriate--- a/overlay.nix
+++ b/overlay.nix
@@ -1,5 +1,3 @@
-{ pkgs, ... }:
-
let
my-overlay = self: super {
# blah blah blah
--- a/home.nix
+++ b/home.nix
@@ -1,4 +1,4 @@
{ pkgs, lib, ... }:
{
- nixpkgs.overlays = [ (import ./overlay.nix) ];
+ nixpkgs.overlays = [ (import ./overlay.nix { inherit pkgs; }) ];
xdg.configFile."nixpkgs/overlays/overlay.nix".source = ./overlay.nix;
}
https://github.com/ErikReider/SwayNotificationCenter
Pros:
Cons:
https://github.com/misterdanb/avizo
https://github.com/nwg-piotr/nwg-wrapper
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.