Skip to content

Frankoslaw/dotfiles-nix

Repository files navigation

❄️ NixOS dotfiles

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

Special thanks to:

Commands to know

  • Rebuild and switch the system configuration (in the config directory):
doas nixos-rebuild switch --flake .#yourComputer --fast

Installation

** IMPORTANT: do NOT use my laptop.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/Frankoslaw/dotfiles-nix ~/.config/nixos && cd ~/.config/nixos

First, create a hardware configuration for your system:

doas 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";
    # 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 = {
        # system
        packages.enable = true;
    };
}

Lastly, build the configuration with

doas nixos-rebuild switch --flake .#yourComputer

TODO:

  • add nixage for secrets
  • add OPTIONAL hyperland
  • learn neovim
  • debug gpu usage
  • flake compat? ( templates / shells )
  • define shelld for:
    • rust
    • go
    • node js
    • python

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages