Coder Social home page Coder Social logo

saberzero1 / dotfiles-nix Goto Github PK

View Code? Open in Web Editor NEW

This project forked from notusknot/dotfiles-nix

0.0 0.0 0.0 21.86 MB

Configuration files for my NixOS machine, declared by home-manager

License: MIT License

Shell 3.79% Lua 55.60% CSS 1.39% Nix 33.03% SCSS 4.70% JavaScript 1.50%

dotfiles-nix's Introduction

❄️ NixOS dotfiles

My configuration files for NixOS. Feel free to look around and copy!

Special thanks to:

Screenshot of my desktop

Info

  • RAM usage on startup: ~180mb
  • Package count: 📦 582
  • Uses the jabuti theme
  • Terminal emulator: 🦶 foot
  • Window manager: 🌿 Hyprland
  • Shell: 🐚 zsh
  • Editor: 📝 neovim
  • Browser: 🦊 Firefox
  • Other: dunst, swaybg, eww, wofi

Commands to know

  • Rebuild and switch the system configuration (in the config directory):
rebuild

OR

doas nixos-rebuild switch --flake .#yourComputer --fast
  • Connect to wifi (replace stuff within brackets with your info)
iwctl --passphrase [passphrase] station [device] connect [SSID]

Installation

** IMPORTANT: do NOT use my laptop.nix and/or desktop.nix! These files include settings that are specific to MY drives and they will mess up for you if you try to use them on your system. **

Please be warned that it may not work perfectly out of the box. For best security, read over all the files to confirm there are no conflictions with your current system.

Prerequisites:

Clone the repo and cd into it:

git clone https://github.com/notusknot/dotfiles-nix ~/.config/nixos && cd ~/.config/nixos

First, create a hardware configuration for your system:

sudo nixos-generate-config

You can then copy this to a the hosts/ directory (note: change yourComputer with whatever you want):

mkdir hosts/yourComputer
cp /etc/nixos/hardware-configuration.nix ~/.config/nixos/hosts/yourComputer/

You can either add or create your own output in flake.nix, by following this template:

nixosConfigurations = {
    # Now, defining a new system is can be done in one line
    #                                Architecture   Hostname
    laptop = mkSystem inputs.nixpkgs "x86_64-linux" "laptop";
    desktop = mkSystem inputs.nixpkgs "x86_64-linux" "desktop";
    # ADD YOUR COMPUTER HERE! (feel free to remove mine)
    yourComputer = mkSystem inputs.nixpkgs "x86_64-linux" "yourComputer";
};

Next, create hosts/yourComputer/user.nix, a configuration file for your system for any modules you want to enable:

{ config, lib, inputs, ...}:

{
    imports = [ ../../modules/default.nix ];
    config.modules = {
        # gui
        hyprland.enable = true;

        # cli
        nvim.enable = true;

        # system
        xdg.enable = true;
    };
}

The above config installs and configures hyprland, nvim, and xdg user directories. Each config is modularized so you don't have to worry about having to install the software alongside it, since the module does it for you. Every available module can be found in the modules directory.

Lastly, build the configuration with

sudo nixos-rebuild switch --flake .#yourComputer

And that should be it! If there are any issues please don't hesistate to submit an issue or contact me.

Conclusion

And thats about it for my configuration. The code is registered under the MIT license, meaning you are allowed to use or distribute the code as you please, and if you need any help or have any suggestions, you can reach me on Discord at notusknot#5622 or email me at [email protected].

dotfiles-nix's People

Contributors

emberavenge avatar notusknot avatar saberzero1 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.