Skip to content

theunpleasantowl/nixconf

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

10 Commits
 
 
 
 
 
 
 
 

Repository files navigation

Nix Config

This repository contains my Nix configuration, organized using Nix Flakes. It aims to provide a reproducible and manageable environment for both system and home configurations.

Structure

The configuration is divided into two main directories:

  • nixos: Contains nixos configurations specific to various hosts.
  • home: Contains home-manager configurations for user-scope settings and applications.

Getting Started

Prerequisites

Ensure you have the following installed:

Cloning the Repository

Clone this repository to your local machine:

git clone [email protected]:theunpleasantowl/nixconf.git
cd nixconf

Building the Configuration

To build the configuration for a specific host, navigate to the hosts directory and run:

nix build .#<host-name>

For example:

nix build .#my-laptop

To build the home configuration, navigate to the home directory:

nix build .#home

Applying the Configuration

To apply the configuration, use the nix switch command for system configurations:

sudo nixos-rebuild switch --flake .#<host-name>

And for the home configuration:

home-manager switch --flake .#home

Usage

  • Hosts: Each host directory should contain a flake.nix file defining the system configuration for that specific machine.
  • Home: The home directory contains a flake.nix file that manages user-level applications and settings.

Contributing

Feel free to contribute to this configuration by submitting issues or pull requests. Make sure to follow the existing structure and maintain clarity in your changes.

License

This configuration is licensed under the MIT License. See the LICENSE file for more details.

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages