41 lines
1017 B
Markdown
41 lines
1017 B
Markdown
# hdh20267-nix
|
|
|
|
Personal NixOS and home-manager configuration for hdh20267.
|
|
|
|
## Structure
|
|
|
|
This repository contains:
|
|
- `user.nix` - User account options and home-manager configuration
|
|
- `nixos.nix` - System-level NixOS configuration (optional)
|
|
|
|
## Usage
|
|
|
|
Reference this repository in the main nixos-systems users.nix:
|
|
|
|
```nix
|
|
hdh20267.external = builtins.fetchGit {
|
|
url = "https://github.com/hdh20267/hdh20267-nix";
|
|
rev = "commit-hash"; # Pin to specific commit
|
|
};
|
|
|
|
# Or for local development:
|
|
hdh20267.external = /path/to/hdh20267-nix;
|
|
```
|
|
|
|
## Files
|
|
|
|
### user.nix
|
|
|
|
This file configures both:
|
|
1. User account options (description, shell, groups, etc.)
|
|
2. Home-manager configuration (packages, programs, dotfiles, etc.)
|
|
|
|
The same file is imported in two contexts:
|
|
- As a NixOS module to read ugaif.users.hdh20267 options
|
|
- As a home-manager module for user environment
|
|
|
|
### nixos.nix
|
|
|
|
System-level configuration that requires root privileges.
|
|
Optional - only needed for system services, special permissions, etc.
|