Comments (9)
To expand on this, I too wish we had separate nixos and home-manager modules. A good reason for this is being able to use the HM module outside of nixos systems. The lack of separation is the only reason I'm still using a weaker handrolled solution instead of migrating to this awesome tool.
from stylix.
I too wish we had separate nixos and home-manager modules.
This is being worked on in #23. It's mostly finished and will be merged soon
from stylix.
Now that #23 has been merged, is any more work planned around this? I feel that the README could contain an example of how to setup stylix with home-manager on a non-NixOS distro.
from stylix.
I agree we should add an example for that use case. It hasn't been tested on non-NixOS yet, however I would expect it to work at least to some extent. It would be great if someone with experience using Home Manager on another distro could set it up and provide feedback :)
If your Home Manager configuration is in a flake, you should be able to import homeManagerModules.stylix
similar to the example for NixOS.
from stylix.
@danth I tried and I got an issue: #28.
from stylix.
Here is a working configuration:
{pkgs, ...}@args:
let
base16 = import ../../base16;
palette-generator = pkgs.callPackage ../../stylix/palette-generator { };
in
{
stylix.image = pkgs.fetchurl {
url = "https://www.pixelstalk.net/wp-content/uploads/2016/05/Epic-Anime-Awesome-Wallpapers.jpg";
sha256 = "enQo3wqhgf0FEPHj2coOCvo7DuZv+x5rL/WIo4qPI50=";
};
imports = [
(import ../../stylix/stylix/hm {
inherit palette-generator;
base16 = base16 args;
})
];
}
Do you want a PR for the README?
from stylix.
I already added an example for Home Manager + Flakes; I've been trying to keep the documentation to flakes only for clarity, but if you think the non-flake version is helpful then please do go ahead with a PR.
from stylix.
I wouldn't have focused only on flakes while they are experimental.
from stylix.
Thanks for solving this!
from stylix.
Related Issues (20)
- module template in docs HOT 3
- grub: only change colors, not override the default nixos theme
- stylix: support slideshows and animated wallpapers HOT 21
- application opacity HOT 8
- Broken with `nix-darwin` HOT 4
- Evaluation fails with home-manager 22.11, and cannot disable mako target HOT 3
- Standard window border colour HOT 8
- Add support for SDDM HOT 6
- Waybar style is unreadable with ayu-dark HOT 6
- Readme Show and Tell HOT 3
- Helix hooks
- GRUB not getting colored correctly HOT 3
- RGB Conversion Functions HOT 1
- fonts.drv causing link errors HOT 7
- Gnome Extensions App DOes Not launch HOT 1
- stylix nixos module assumming home-manager useage in nixos HOT 6
- Tmux support HOT 2
- emacs: add support for doom variant HOT 3
- Breaks `documentation.nixos.includeAllModules`
- pyWal support and terminal coloring HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from stylix.