https://github.com/magdyamr542/nixos-config
My NIXOS configuration
https://github.com/magdyamr542/nixos-config
Last synced: 3 months ago
JSON representation
My NIXOS configuration
- Host: GitHub
- URL: https://github.com/magdyamr542/nixos-config
- Owner: magdyamr542
- Created: 2024-09-28T10:26:48.000Z (about 1 year ago)
- Default Branch: main
- Last Pushed: 2025-06-19T13:57:11.000Z (4 months ago)
- Last Synced: 2025-06-19T14:49:55.045Z (4 months ago)
- Language: Shell
- Homepage:
- Size: 512 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
## My NIXOS config
To start:
1. create `./nixos/users/amr/password.txt` and put the login password there.
- Note: vim adds new lines, make sure to remove those
- https://stackoverflow.com/questions/1050640/how-to-stop-vim-from-adding-a-newline-at-end-of-file
2. sync ssh keys
- create `./home-manager/users/amr/ssh_keys/github` and put the private key there (found in bitwarden).
- create `./home-manager/users/amr/ssh_keys/gitlab_tu_dortmund` and put the private key there (found in bitwarden).
3. `sudo nixos-rebuild switch --flake /etc/nixos#amr`
4. `nix-shell -p home-manager`
5. `home-manager switch --flake /etc/nixos#amr`#### Note!!
When using the git repo in the `/etc/nixos` directory, make sure to delete `.git` and `.gitignore`. Otherwise, the nix flake
ignores files needed in the build process like the private keys and the user password added above.