Git Product home page Git Product logo

dotfiles's Introduction

Hello there ๐Ÿ‘‹

I am a third year Mathematics and Physics undergraduate based in the U.K who loves Physics, Maths and Linux.

My favourite areas of physics are

  • Atomistic modelling, molecular dynamics and density functional theory.
  • Condensed matter, solid state physics
  • Particle physics and fundamental structures of the universe.
  • Quantum computing theory.

Within mathematics, I love abstract algebra and functional analysis.

I have programmed in

  • C
  • Python
  • TypeScript

Other programming thingies:

  • Bash
  • Nix
  • (La)TeX
  • Linux: NixOS, Fedora, Void, Arch, Raspberry Pi.
  • Frontend Web Development

Top Langs

Learn more: https://chungxu.dev

dotfiles's People

Contributors

chpxu avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar

dotfiles's Issues

home-manager loses settings on cold boot

Issue

Sometimes after some restarts or cold boot (from full power off), all configuration done with home-manager will be lost.

Symptoms and Reproducibility

  • All symlinks in .config will appear invalid.
  • Starting Hyprland will result in default config and therefore impossible to quit unless switching to a new sessions.

Potential Resolution

Move home-manager to become a NixOS module, then configure the home.user.<user> setting. Some steps like this might need to be taken:

  1. Import all modules configured by home-manager into the commonHome.nix file.
  2. Define config.hostname.users so the configuration will be flexible to adopt multiple users across multiple hostnames. In particular this repo is inspiring.
  3. Attach home-manager module settings into the current mkSystemConfiguration function and rename it to a generic mkConfig

This will mean rebuilding all user and system can be done with a single nixos-rebuild command, which is the current standard. This should mean everything is built successfully when rebooting/powering up.

It would also make stuff such as impermanence easier to deal with.

Closure size is too large

Summary

The complete configuration will download at a bare minimum, 5 GiB, worth of derivations from nixpkgs and other inputs, with a final closure (installed) size of at least 10GiB.

Per update, i.e. when running home-manager switch and nixos-rebuild switch after nix flake update will cause at least 3GiB of downloaded packages and an almost 10GiB install size.

For the amount of programs I use, this isn't too bad, but there are ways of significantly reducing this size and implementing modularity. In terms of packages, the main culprits are:

  • texlive-full
    • I use LaTeX on a daily basis and to have a quick and easy setup with VSCode, I install all packages on a home-manager generation. The closure size of this package is estimated at around 5GiB.
  • Global Python Environment
    • Again, a setup for convenience in VSCode.

Remedies

  • texlive-full

    • Work on rlt.sh (see repo) as an independent method to build LaTeX files on NixOS. This would create a customised shell containing all necessary packages and would reduce the necessity for a global installation.
    • Realise what programs (e.g. LTeX etc.) would function best outside of this.
  • Python

    • Work on using direnv to create python environments for development and projects.
    • Realise what programs/packages would still work best globally. Especially necessary for VSCode environments.
  • Remove unused programs

    • thunderbird(I tend to use web clients more)
    • xournalpp (I use rnote instead and it can open .xopp files which is all I need)
      - mathpix (for now)

More will probably need to be added.

Better ways to optimise this configuration must also be explored.

Package size reduce down to: 440 - 971 - 171
Update size reduced less than 100MB download for updating the nix flake inputs after 3 days.

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.