This repository contains a Nix flake to set up Sway with a custom configuration on NixOS.
A custom tailored NixOS configuration targeting the Sway window manager, complemented with a range of packages to offer a robust and efficient environment.
- NixOS with flake support enabled.
- Ensure you are running on
x86_64-linux
architecture.
The repository includes a user-config.nix
file that has been set up with my user details for flake purity. If you intend to use this configuration, you'll need to update this file with your details:
{
username = "yourUsername"; # Replace 'yourUsername' with your actual username
homeDirectory = "/home/yourUsername"; # Adjust the path accordingly
}
To build the flake, you'll need to run the following commands:
sudo nixos-rebuild switch --flake "$(pwd)#mySystem"
home-manager switch --flake "$(pwd)#myUser" --extra-experimental-features nix-command --extra-experimental-features flakes
Once the flake has been built, you can run further builds from the flake repo with the flake-build
custom alias I have set up.
flake.nix
: The central configuration defining the system and home-manager setups, including dependencies.configuration.nix
: NixOS system configuration.home.nix
: Contains configurations for the user's environment, including home-manager packages and shell setup.user-config.nix
: User and home path detailsdotfiles/
: Contains various dotfiles that can be linked or copied to user's home.
nixpkgs
: Uses thenixos-unstable
branch of the official NixOS/nixpkgs repository on GitHub.home-manager
: Sourced from the nix-community's home-manager repository. Note: It follows the same nixpkgs as defined in the flake.
Feel free to raise issues or submit Pull Requests if you find any problems or have suggestions for improvements.