1
2023-04-26 19:30:57 +02:00
2023-04-26 19:30:57 +02:00
2023-04-26 14:59:16 +02:00
2023-04-26 12:56:31 +02:00
2023-04-26 15:00:10 +02:00
2023-04-26 15:00:29 +02:00
2023-04-26 12:56:31 +02:00
2023-04-23 13:02:48 +02:00
2022-07-29 16:26:40 +02:00
2022-06-29 14:26:43 +02:00
2023-04-02 15:19:47 +02:00
2023-04-23 13:02:52 +02:00
2023-04-26 15:00:20 +02:00
2022-08-11 14:35:36 +02:00
2023-01-18 14:00:02 +01:00
2023-04-02 15:19:31 +02:00

NixOS Configuration

To install remove everything from /etc/nixos and symlink the flake.nix to /etc/nixos/flake.nix. Because I am dumb many obvious things are explained here and in comments inside the configuration. This is very WIP and some parts are pretty dumb as I am still learning the NixOS ecosystem.

I heavily borrowed from:

./system

This folder contains all the system configurations.

  • There is a common configuration used for all systems: NixFlake/nixos
  • Every system has its own special configuration: NixFlake/nixos/<hostname>

When creating a NixOS configuration inside the NixFlake/flake.nix the common configuration is imported. Because the hostname is propagated to the common configuration, it can import the host-specific config by itself.

./home

This folder contains all the home-manager configurations.

  • There is a configuration for each user: NixFlake/home/<username>
  • There is a common configuration for all systems of this user: NixFlake/home/<username>/<hostname>

When creating a NixOS configuration inside the NixFlake/flake.nix the common configuration is imported. Because the hostname is propagated to the common configuration, it can import the host-specific config by itself.

Notes

  • I didn't organize the modules in folders with a default.nix for every module as this reduces readability
  • Modules are split into system modules and home modules
  • The NixFlake/overlays/default.nix imports all the derivations
  • NixFlake/config contains all the dotfiles that are symlinked by HomeManager
Description
No description provided
Readme 356 MiB
Languages
Nix 96.3%
TeX 1.2%
Lua 0.7%
TypeScript 0.6%
Python 0.5%
Other 0.7%