This repository contains my Home Manager configuration files. Because Home Manager is available for several *nix OSs like Linux or macOS you are able to use this config these OSs.
Type of program | Type of programs used |
---|---|
Shell | Zsh |
Wayland compositor | sway |
Status bar | Waybar |
Application launcher | dmenu |
Terminal emulator | Kitty |
Text editor | VSCodium, Kakoune |
Web browser | Brave, Firefox |
- Roboto
- Font Awesome
- Iosevka (Nerdfont)
Install Home Manager.
Clone this repository to somewhere, for example: your home directory, like this
git clone https://codeberg.org/papojari/home-manager-config.git
Then apply the config with this command:
./manage.sh --apply
This is the default wallpaper. You just need to build the Home Manager configuration to look at it in sway.
- to use, uncomment the first
$Background
line and comment the next line inusers/default/sway/config
. The default resolution is2560
by1440
. If this does not match your resolution you should comment the current resolution inusers/default/sway/default.nix
and uncomment your desired resolution. Then rebuild with
./manage.sh --apply-users
Before you starting to use sway you'll have to adjust the config to you monitor setup. To list your monitors run
swaymsg -t get_outputs
and then adjust the identifiers like DP-1
or HDMI-A-1
, resolutions and positions in users/default/sway/default.nix
in the wayland.windowManager.sway.config.output
section. Then rebuild with
./manage.sh --apply-users
You can just start sway with sway
in a tty. Alternatively start sway from a display manager. In my experience, despite what the wiki says, gdm works. Don't use gdm though. It breaks gvfs.
If you want to fork this repository and configure it to your liking you may want to put secrets in some files. I've put mine in .secrets
. This folder is useless to you since it is encrypted.
The next to sub headings describe 2 ways in which you can encrypt your .secrets
. git-crypt
is more convenient. But first, follow the next steps.
-
rm .secrets .git-crypt
-
Put your secrets in
.secrets
. -
If there are nix files in
.secrets
you may want to import them in the other nix files.
git-crypt init
Before doing commits with git
you should run
./manage.sh --lock
to encrypt the secrets with a password. Otherwise your secrets won't be secrets anymore so be careful, if your secrets are included in the commit. Put that password in a password manager like Bitwarden. You'll need it to unencrypt your secrets with
./manage.sh --unlock
as you might've guessed by now.
View this repository's licenses
Thanks Wil Taylor for teaching me nix flakes and git crypt
in your awesome tutorial series!