Giter Site home page Giter Site logo

berbiche / dotfiles Goto Github PK

View Code? Open in Web Editor NEW
43.0 2.0 2.0 2.08 MB

My messy system configuration setup

License: MIT License

Nix 89.24% Shell 2.24% Python 4.14% CSS 1.01% Emacs Lisp 2.17% Less 1.20%
nixos-configuration home-manager nix-darwin

dotfiles's People

Contributors

berbiche avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar

dotfiles's Issues

TODOs

  • Merge Doom Emacs configuration with this configuration
  • Replace usage of Nix Channels with Niv
  • Cleanup user/home-manager/programs/* configurations
    • Write configuration files using Nix
    • ???
  • Update instructions provided in README
  • Replace Niv with Flakes
  • Replace Nixus?
  • Fix font configuration
  • Fix mimeapps

(resolved) Infinite recursion with overlays

Issue

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 imported 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.

Fix

To resolve the issue, one can either

  1. Remove the arguments { 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
  1. Import the overlay by passing the required variables
--- 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;
 }

Are you open to upstreaming your darkman home-manager module?

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.

Things to check out

Notification daemon with a notification center

https://github.com/ErikReider/SwayNotificationCenter

Pros:

  • Notification center (and wayland native unlike deadd-notification-center)

Cons:

  • Lacks the customization of Mako/Dunst
  • Does not support "do not disturb" functionality (pause/resume)
  • Does not support notification rules (scriptability)
    • Does not support sound notifications

Notification daemon to replace volnoti (volume), eww (my microphone state window) and whatever to display brightness

https://github.com/misterdanb/avizo

Conky-like thingy that works with Wlroots compositors

https://github.com/nwg-piotr/nwg-wrapper

Patched wshowkeys

https://github.com/ammgws/wshowkeys

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.