Skip to content

My Personal NixOS Configuration Flake with Home-Manager and Plasma-Manager

License

Notifications You must be signed in to change notification settings

d4ve10/nixos-config

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

21 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

NixOS Configuration

This repository contains my NixOS configuration files.

Installation

Note: It is highly recommended to review the configuration contents and make necessary modifications to customize it to your needs before attempting the installation.

1. Install NixOS

First install NixOS using any graphical ISO image.

Note: Only been tested by choosing the No desktop option during installation.

2. Clone the repo

nix-shell -p git
git clone https://github.com/d4ve10/nixos-config
cd nixos-config

3. Configure variables

Change the vars variables in flake.nix to your desired values.

4. Install flake

Execute and follow commands (replace <hostname> with the hostname that you want to use):

cp /etc/nixos/hardware-configuration.nix hosts/<hostname>/hardware-configuration.nix
sudo nixos-rebuild switch --flake .#<hostname>

4. Reboot

After rebooting you should have a working NixOS system with the configuration from this repository.

Configuration

The configuration is structured as follows:

  • hosts: Contains the configuration for each host.
  • hosts/<hostname>: Contains the configuration for a specific host.
  • modules: Contains the configuration for each module.
  • modules/options.nix: Setting these options will enable or disable certain features.

Commands to use

  • nh os switch -a -H <hostname> .: Build and switch to the configuration of a specific host.
  • nh clean -a -K 4d: Clean up old generations.

Credits

Other dotfiles that I have used as inspiration:

About

My Personal NixOS Configuration Flake with Home-Manager and Plasma-Manager

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages