Skip to content

About

A generic example of the private files used in conjunction with NixOS-Public to set personal information.

Resources

Stars

0 stars

Watchers

0 watching

Forks

Latest commit

 

History

3 Commits

Folders and files

NameName
Last commit message
Last commit date
 
 
 
 
 
 

Repository files navigation

NixOS-Private - Additional Requirements for the NixOS-Public Configuration

NixOS Flakes License: MIT

The few files contained here are so you can keep your personal information private.

Structure

syste_files
├── public/                            # Publicly available information
│   ├── .git/
│   ├── flake.nix                      # Inputs + outputs
│   ├── flake.lock                     # Pinned dependency versions
│   ├── system/
│   │   ├── configuration.nix          # System-wide config
│   │   ├── hardware-configuration.nix # Machine hardware-specific config
│   │   └── modules/                   # Reusable NixOS modules
│   ├── users/
│   │   └── primary/
│   │       ├── home.nix               # User-specific home-manager config
│   │       └── modules/               # User-specific modules
│   ├── README.md                      # The README.md files you are currently reading.
│   └── LICENSE
└── private/                           # Personal information to be kept private
    ├── .git/
    ├── personal.nix                    # Your personal information
    └── system/
        └── hardware-configuration.nix

System Design

private.nix

personal.nix is used to store information such as your hostname and username.

personal/system/

personal/system/ is used to store your computers hardware information.

Using NixOS-Private

Pulling From A Private Repository

cd ~/system_files/public

# Edit the flake.nix to match your private repository. i.e. url = "git+ssh://git@github.com/BenjaminSLS/redmont-private.git"; -> url = "git+ssh://git@github.com/{username}/{repository}.git";

cd ..

git clone git@github.com:BenjaminSLS/NixOS-Private.git

mv NixOS-Private private

cd private

cp ~/etc/nixos/hardware-configuration.nix system/

# Edit the personal.nix file's set username, hostname, timezone, and locale to match your desires.

cd ../public

Rebuild Your New System

Once you are in ~/system_files/public:

sudo nixos-rebuild switch --flake .#

Rollback if Something Breaks

sudo nixos-rebuild switch --rollback

or

Select a previous version when booting up.

License

This project is licensed under the MIT License — see the LICENSE file for details.

Copyright (c) 2026 Benjamin (Ben) LaShell

About

A generic example of the private files used in conjunction with NixOS-Public to set personal information.

Resources

Stars

0 stars

Watchers

0 watching

Forks

Releases

Packages

Contributors

Languages