Skip to content

ziap/dotfiles

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

130 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Zap's NixOS dotfiles

My custom environment ported to NixOS and managed with home-manager

Informations

screenshot

This repository contains my desktop and development environment managed using NixOS. It's based on my old Fedora - Sway dotfiles available (but unmaintained) here, but migrated to NixOS for:

  • More and newer packages on nixpkgs
  • Better reproducibility and ease of setting up
  • Per-project isolated development environment
  • Easier upgrade and maintenance

Installation

Flake-ify your configuration.nix and add the dotfiles as an input:

{
  description = "Your NixOS system configuration";

  inputs = {
    nixpkgs.url = "github:nixos/nixpkgs/nixos-unstable";
    dotfiles = {
      url = "github:ziap/dotfiles";
      inputs.nixpkgs.follows = "nixpkgs";
    };
  };

  outputs = { self, nixpkgs, dotfiles }: {
    nixosConfigurations.nixos = nixpkgs.lib.nixosSystem {
      system = "x86_64-linux";
      modules = [
        ./configuration.nix
        dotfiles.nixosModules.userConfig
      ];
    };
  };
}

Rebuild the system with the included configuration

sudo nixos rebuild switch

Clone the repository

git clone https://github.com/ziap/dotfiles
cd dotfiles

Install and activate home-manager

nix run . -- switch --flake .

License

This project is licensed under the GPL-3.0 license.