cu3po42 / gleaming-glacier Goto Github PK
View Code? Open in Web Editor NEWThese are my dotfiles. There are many like it, but these ones are mine.
These are my dotfiles. There are many like it, but these ones are mine.
I see you are using the 'op' command in plate and in packages/op-wsl-proxy, but the 1password app & CLI currently are only installed on darwin, via features/darwin/apps.nix. This makes me wonder whether you typically install 1password in your nixOS host configuration(s), or if you always run plate from your mac.
While on the subject of nixos hosts, I get where you are coming from in terms of not making it too easy to build nixOS hosts, but I for one would really appreciate it if you showed some simple examples of a working desktop and server host, because you do abstract out some of the hardware-related bits into feature modules (amd/nvidia, zfs, impermanence, secure-boot, etc.). Knowing how all these fit with each other (and with plate) would be very helpful. Right now I'm take my existing config and then edit things out a few pieces at a time until it works, which is tedious. The examples don't need to be working ones.
nix flake init --template github:Cu3PO42/gleaming-glacier/next#system
copper.url = "github:Cu3PO42/gleaming-glacier/next"
nix flake update
in dir:lf .
outputs
A non-errored list of outputs, like what is displayed when doing a straight init from the master branch
❯ nix repl --show-trace
Welcome to Nix 2.18.1. Type :? for help.
nix-repl> :lf .
Added 25 variables.
nix-repl> outputs
{ apps = { ... }; checks = { ... }; chromaThemes = { ... }; darwinConfigurations = { ... }; darwinModules = { ... }; devShells = { ... }; flakeModules = { ... }; formatter = { ... }; homeConfigurations = { ... }; homeModules = { ... }; legacyPackages = { ... }; lib = «error: error:
… while calling anonymous lambda
at /nix/store/fc0ajx4015sh8i65iwb8qd3vap3wswpr-source/lib/attrsets.nix:816:24:
815| let f = attrPath:
816| zipAttrsWith (n: values:
| ^
817| let here = attrPath ++ [n]; in
… while calling anonymous lambda
at /nix/store/fc0ajx4015sh8i65iwb8qd3vap3wswpr-source/lib/types.nix:563:29:
562| merge = loc: defs:
563| zipAttrsWith (name: defs:
| ^
564| let merged = mergeDefinitions (loc ++ [name]) elemType defs;
error: The option `flake.lib' is used but not defined.»; nixosConfigurations = { ... }; nixosModules = { ... }; overlays = { ... }; packages = { ... }; templates = «error: error:
… while calling anonymous lambda
at /nix/store/fc0ajx4015sh8i65iwb8qd3vap3wswpr-source/lib/attrsets.nix:816:24:
815| let f = attrPath:
816| zipAttrsWith (n: values:
| ^
817| let here = attrPath ++ [n]; in
… while calling anonymous lambda
at /nix/store/fc0ajx4015sh8i65iwb8qd3vap3wswpr-source/lib/types.nix:563:29:
562| merge = loc: defs:
563| zipAttrsWith (name: defs:
| ^
564| let merged = mergeDefinitions (loc ++ [name]) elemType defs;
error: The option `flake.templates' is used but not defined.»; }
Equivalent with nix flake show
:
❯ nix flake show
path:/home/max/Data/Source/glacier-fromtemplate-next?lastModified=1708606115&narHash=sha256-/gOtkYXfz7BTsFtsncI6PyZIQ670Ll2xDXgMwJY9wWI%3D
├───chromaThemes: unknown
├───darwinConfigurations: unknown
├───darwinModules: unknown
├───flakeModules: unknown
├───formatter
│ ├───aarch64-darwin omitted (use '--all-systems' to show)
│ ├───aarch64-linux omitted (use '--all-systems' to show)
│ ├───x86_64-darwin omitted (use '--all-systems' to show)
│ └───x86_64-linux: package 'alejandra-3.0.0'
├───homeConfigurations: unknown
├───homeModules: unknown
├───lib: unknown
├───nixosModules
│ ├───myprefix-features: NixOS module
│ └───myprefix-per-system: NixOS module
├───overlays
│ ├───additions: Nixpkgs overlay
│ └───flake-inputs: Nixpkgs overlay
└───templates
error: 'templates' is not an attribute set
❯ nix-shell -p nix-info --run "nix-info -m"
- system: `"x86_64-linux"`
- host os: `Linux 6.1.77, NixOS, 23.11 (Tapir), 23.11.20240215.c68a9fc`
- multi-user?: `yes`
- sandbox: `yes`
- version: `nix-env (Nix) 2.18.1`
- nixpkgs: `/nix/var/nix/profiles/per-user/root/channels/nixos`
First location is here: https://github.com/Cu3PO42/gleaming-glacier/blob/next/themes/catppuccin.nix#L10
waybarOverrides
, not waylbarOverrides
Second location is here: https://github.com/Cu3PO42/gleaming-glacier/blob/next/themes/catppuccin.nix#L76
colorOverrides
of waylbar
does nothing as this is not the name of an actual chroma integration:)
OT: Chroma is great, I've ported gruvbox and soon rosepine to it and added a functioning tmux integration and a not so functioning nvchad integration!
First - thanks for a wonderful project! I'm new to nix/nixos and most likely any issues I'm having are a skill issue, so bear with me. :)
I've tried generating an instance of your flake using the install script, (and then generate.sh to generate a user). I then went ahead and upgraded the input pointer of your flake to use the next
branch since I'm specifically interested in the chroma stuff. Furthermore, I've added some features as well as a NixOS host and a user:
https://github.com/maxbol/nix-dotfiles/tree/3580c8f87cabda21e9b7b2a79be3012dad378c55
When running nix flake show
in the root of this directory, I get:
error: undefined variable 'loadNixos'
at /nix/store/n1f9aid7aj956fd9kazblr3dkdxicvw6-source/flake.nix:47:29:
46| # `withCopperModules = false` to change that behavior.
47| nixosConfigurations = loadNixos {
| ^
48| dir = ./hosts/nixos;
One thing I still find very challenging with the nix language is parsing through the code to find the source of errors like this. There are so many higher order functions, injection shennanigans, various module loading patterns etc that it honestly becomes pretty difficult for me to figure out what is going on. Most likely this will all click for me at some point but right now I'm at a loss. loadModules
seems to be present (presumably in copper.lib
since this is the prefix I'm unpacking with with
), but loadNixos
is missing...
Any idea what might be going wrong here? :)
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.