Giter VIP home page Giter VIP logo

gleaming-glacier's People

Contributors

cu3po42 avatar

Stargazers

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

Watchers

 avatar  avatar  avatar

gleaming-glacier's Issues

1password not installed on linux (including WSL)?

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.

Template inited from next branch errors on nix repl/flake show inspection of "outputs": "templates" is not an attribute set

Steps to reproduce

  1. Init from template with nix flake init --template github:Cu3PO42/gleaming-glacier/next#system
  2. Change in input: copper.url = "github:Cu3PO42/gleaming-glacier/next"
  3. Run nix flake update in dir
  4. Start nix-repl and load the flake with :lf .
  5. Probe outputs

Expected result

A non-errored list of outputs, like what is displayed when doing a straight init from the master branch

Actual result

❯ 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

Metadata

❯ 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`

themes/catppuccin.nix errouneously references "waylbar" in two locations

First location is here: https://github.com/Cu3PO42/gleaming-glacier/blob/next/themes/catppuccin.nix#L10

  • The function actually being passed in is called waybarOverrides, not waylbarOverrides

Second location is here: https://github.com/Cu3PO42/gleaming-glacier/blob/next/themes/catppuccin.nix#L76

  • Settings the 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!

error: undefined variable 'loadNixos' on `flake show`

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? :)

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.