Nixconfig structure should be improved #1

Closed
opened 2025-12-15 21:15:30 +00:00 by aaron · 2 comments
Owner
  • the structure of the configuration.nix file could be improved by moving parts to simple modules.
  • also the hardware-configuration gets imported by both the flake file and the configuration.nix file, that's not good
  • nixos-helper could be used to simplify deployments
- [x] the structure of the configuration.nix file could be improved by moving parts to simple modules. - [x] also the hardware-configuration gets imported by both the flake file and the configuration.nix file, that's not good - [x] nixos-helper could be used to simplify deployments
Author
Owner

PR #2 will introduce a new structure for the project. The configuration is split into modules and imported in the configuration.nix of each host.

nixconfig/
├── flake.nix
├── flake.lock
├── README.md
├── hosts/
│   ├── default/
│   │   ├── configuration.nix # host-specific imports only
│   │   └── hardware-configuration.nix # hardware-specific config only
│   └── neon/
│       ├── configuration.nix
│       └── hardware-configuration.nix
├── modules/
│   ├── nixos/
│   │   ├── bootloader.nix
│   │   ├── services.nix
│   │   ├── sddm.nix
│   │   ├── niri.nix
│   │   ├── noctalia.nix
│   │   ├── users.nix
│   │   ├── locales.nix
│   │   └── network.nix
│   └── home-manager/
│       ├── nvim.nix
│       ├── tmux.nix
│       ├── git.nix
│       └── shell.nix
└── users/
    └── aaron/
        └── home.nix # user-specific imports only
PR #2 will introduce a new structure for the project. The configuration is split into modules and imported in the configuration.nix of each host. ``` nixconfig/ ├── flake.nix ├── flake.lock ├── README.md ├── hosts/ │ ├── default/ │ │ ├── configuration.nix # host-specific imports only │ │ └── hardware-configuration.nix # hardware-specific config only │ └── neon/ │ ├── configuration.nix │ └── hardware-configuration.nix ├── modules/ │ ├── nixos/ │ │ ├── bootloader.nix │ │ ├── services.nix │ │ ├── sddm.nix │ │ ├── niri.nix │ │ ├── noctalia.nix │ │ ├── users.nix │ │ ├── locales.nix │ │ └── network.nix │ └── home-manager/ │ ├── nvim.nix │ ├── tmux.nix │ ├── git.nix │ └── shell.nix └── users/ └── aaron/ └── home.nix # user-specific imports only ```
Author
Owner

fixed by #2

fixed by #2
aaron closed this issue 2025-12-31 10:20:09 +00:00
Sign in to join this conversation.
No Label
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: aaron/nixconfig#1