Giter Site home page Giter Site logo

evertras / nix-systems Goto Github PK

View Code? Open in Web Editor NEW
8.0 2.0 1.0 948 KB

My Nix setup for NixOS-powered home systems and general user environment using Home Manager.

Nix 40.56% Makefile 1.61% Shell 1.17% C 53.51% Roff 2.92% Lua 0.24%
dotfiles home-manager homemanager nix nixos nixos-config nixos-configuration

nix-systems's Introduction

nix-systems

All my Nix systems and home-manager config.

Sample screenshot

Using this

For regular system updates, just run make system.

For updating just home, run make home or just make.

For bootstrapping a fresh NixOS install as root:

nix-shell -p git gnumake
git clone https://github.com/Evertras/nix-systems
cd nix-systems
make system
# Specify actual desired user here
sudo -u evertras make home EVERTRAS_USER_PROFILE="some-profile-name"
# Set user profile here, direnv will use this later outside of root
cp .envrc.example .envrc
reboot now

Troubleshooting

No suitable profile directory error message

Could not find suitable profile directory, tried /home/evertras/.local/state/home-manager/profiles and /nix/var/nix/profiles/per-user/evertras
# The error message is misleading, make this directory
mkdir -p ~/.local/state/nix/profiles/

OpenGL issues when only using home

When running on a non-NixOS machine, problems may happen with OpenGL such as with Kitty.

Use nixGL to get around this.

nixGL kitty

Random todos for later

  • Explore better types like nonEmptyString
  • More enum checks with asserts for things like desktop as "i3"

Font list

I get bored with fonts so here's a list of the nerd fonts that I actually like, as a reminder to myself.

Clean

For just focusing.

Standard

Go-tos

  • CaskaydiaCove - Solid baseline when all else fails, bit wider
  • Hasklug - Default go-to for ligatures, clean

Alternatives

Feeling different but still "boring".

  • AurulentSansM - Soft/clean, not sure if I like 0 without dot
  • BitstromWera - Clean/simple
  • CodeNewRoman - Clean/simple
  • Cousine - Clear, simple
  • JetBrainsMono - Clean, ligatures
  • Literation - Wider
  • OverpassM - Thinner, simple
  • RobotoMono - Clean, simple
  • UbuntuMono - Feels like Ubuntu, yep

Fun/different

To change it up.

  • Agave Nerd - kind of old school sharp feel
  • ComicShannsMono - Casual and surprisingly nice to read
  • FantasqueSansM - Bit whimsical
  • Gohu Font 14 - Pixel font, sharp at size 14 - can use 11 as well for tiny readable font
  • Hurmit - Fun change in small doses
  • Iosevka - Feels squished horizontally but still clean
  • Monofur - Thin stroke with round characters
  • Monoid - Bigger, but ligatures
  • Mononoki - Just feels different, hard to describe
  • OpenDyslexicM - Weirdly stroked characters, wider
  • ProFont IIx - Pixel font, nicely sharp
  • ProggyClean - Works for very small font sizes, not great at larger
  • ShureTechMono - Bit squished, hard to describe
  • SpaceMono - Extra space between lines
  • Terminess - Works nicely for windows/titles but not so much terminal

Stupid nix tricks

Build a VM image to test

# Build it as a VM, then run the output link it gives
nixos-rebuild build-vm --flake .#HOSTNAME

# Alternatively using nix command
nix build '.#nixosConfigurations.HOSTNAME.config.system.build.vm'

# Or just run it directly
nix run '.#nixosConfigurations.HOSTNAME.config.system.build.vm'

# Run it without even cloning this repo
nix run 'github:Evertras/nix-systems#nixosConfigurations.HOSTNAME.config.system.build.vm'

nix-systems's People

Contributors

evertras avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar

Forkers

triklsbg

nix-systems's Issues

Please enter a few github topics

to make your interesting repo more detectable via browsing or github querys. "nixos, home-manager, dwm-desktop ,," for example.
Thanks

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.