Coder Social home page Coder Social logo

gvolpe / nix-config Goto Github PK

View Code? Open in Web Editor NEW
773.0 19.0 70.0 109.63 MB

:space_invader: NixOS configuration

License: Apache License 2.0

Shell 1.89% Nix 76.76% Haskell 19.58% CSS 1.78%
nix dotfiles dotfiles-linux nixpkgs neovim-configuration nixos-configuration nixos fish-shell tmux neovim

nix-config's Introduction

nix-config

ci-badge built with garnix

My current — and always evolving — NixOS configuration files, home-manager, neovim, etc.

Hyprland

This is my current Window Manager — the hype Wayland kid on the block!

hyprland

Environment details
Type Program
Editor NeoVim
Launcher Wofi
Shell Fish
Status Bar Waybar
Terminal Foot
Window Manager Hyprland
File Manager Nemo
GTK Theme Juno Ocean
GTK Icon Theme Beauty Line
Terminal Font JetBrainsMono
Expand to see more screenshots

hyprlock

floating

btm

nemo

XMonad

XMonad will be forever in my heart — the best X window manager!

neofetch

Environment details
Type Program
Editor NeoVim
Launcher Rofi
Shell Fish
Status Bar Polybar
Terminal Alacritty
Window Manager XMonad
File Manager Nautilus
GTK Theme Juno Ocean
GTK Icon Theme Beauty Line
Terminal Font JetBrainsMono
Expand to see more screenshots

cowsay

scala-dev-env

desktop

themes

demo

NeoVim

My NeoVim configuration lives here: https://github.com/gvolpe/neovim-flake

Structure

Overview of the project structure
.
├── flake.nix
├── flake.lock
├── switch
├── home
├── imgs
├── lib
├── notes
├── outputs
└── system
  • flake.nix: home and system configurations.
  • switch: helper script to build and switch home and system configurations.
  • home: all the user programs, services and dotfiles for different window managers.
  • imgs: screenshots and other images.
  • lib: custom nix library functions and overlays used to instantiate pkgs.
  • notes: cheat-sheets, docs, etc.
  • outputs: the Home Manager and NixOS flake outputs.
  • system: the NixOS configuration, settings for different laptops and window managers.

Flake outputs

You can have a look at the available flake outputs before getting started.

$ nix flake show github:gvolpe/nix-config
├───apps
│   └───x86_64-linux
│       └───nix: app
├───homeConfigurations
│   ├───hyprland-edp: home-manager configuration [home-manager-generation]
│   ├───hyprland-hdmi: home-manager configuration [home-manager-generation]
│   ├───xmonad-edp: home-manager configuration [home-manager-generation]
│   └───xmonad-hdmi: home-manager configuration [home-manager-generation]
├───nixosConfigurations
│   ├───dell-xps: NixOS configuration [nixos-system-dell-xps-15-9560-24.05pre-git]
│   ├───thinkpad: NixOS configuration [nixos-system-thinkpad-x1-24.05pre-git]
│   └───tongfang-amd: NixOS configuration [nixos-system-tongfang-amd-24.05pre-git]
├───out
│   ├───overlays: custom instance to be used by consumers of this flake
│   └───pkgs: custom instance to be used by consumers of this flake
└───packages
    └───x86_64-linux
        ├───bazecor: package [bazecor-1.3.11-patched]
        ├───metals: package [metals-1.2.2]
        └───metals-updater: package [metals-updater-script]

As well as all the declared flake inputs.

nix flake metadata github:gvolpe/nix-config

Install

The edp-tongfang-amd configuration also contains my Home Manager configuration using the NixOS module, so it can easily be tested with a single command.

nixos-rebuild switch --flake github:gvolpe/nix-config#edp-tongfang-amd

Or you can test it directly on a QEMU virtual machine, though it has its limitations in terms of graphics.

nixos-rebuild build-vm --flake github:gvolpe/nix-config#edp-tongfang-amd
./result/bin/run-tongfang-amd-vm

Having both NixOS and Home Manager configurations combined makes it easier to quickly install it on a new machine, but my preference is to have both separate, as my Home Manager configuration changes more often than that of the NixOS one, resulting in multiple generations at boot time.

Managing the different Home Manager generations in isolation makes this way easier for me.

NixOS

The NixOS configuration can be installed by running the following command.

nixos-rebuild switch --flake github:gvolpe/nix-config#tongfang-amd

Beware that the hardware-configuration.nix file is the result of the hardware scan of the specific machine and might not be suitable for yours.

Home Manager

A fresh install requires the creation of certain directories (see what the switch script does). However, if you omit those steps, the entire HM configuration can also be built as any other flake.

nix build github:gvolpe/nix-config#homeConfigurations.xmonad-edp.activationPackage
result/activate

Fresh install

To set up a new machine from scratch, have a look at this document.

nix-config's People

Contributors

gvolpe avatar mergify[bot] avatar pleshevskiy avatar plumpmath avatar

Stargazers

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

Watchers

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

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.