Nix Flakes configuration for MacOS, NixOS and WSL
0
fork

Configure Feed

Select the types of activity you want to include in your feed.

docs: add basic readme

cosmeak 778e5c36 4705d524

+46 -1
+45
README.md
··· 1 + # Asgard 2 + 3 + > [!WARNING] 4 + > This configuration is only for my purpose, you can take inspiration and some code but don't install or use it as a base.๐Ÿ™‚ 5 + 6 + ## ๐Ÿ’ป - Hosts 7 + 8 + | Name | OS | Usage | Machine | 9 + | -------- | --------------------- | ----------- | -------------- | 10 + | njord | MacOS | Development | Macbook Pro M2 | 11 + | loki | NixOS | Gaming | Desktop | 12 + | hvedrung | FreeBSD (with nixbsd) | Tests | Desktop | 13 + 14 + | Machine | CPU | GPU | RAM | 15 + | ------- | ---------- | ------------- | ---- | 16 + | Desktop | i5 13600kf | Nvidia 4070ti | 32Go | 17 + 18 + > [!NOTE] 19 + > The i5 is the worst CPU i've got, so much problem with stability and other things, some patch applied can be link for it stability. 20 + 21 + ## ๐Ÿ“ฆ - Structure 22 + 23 + ``` 24 + . 25 + โ”œโ”€โ”€ homes # User home configuration (Not Home manager, just sim) 26 + โ”‚ โ””โ”€โ”€ cosmeak # Personal folders for dotfiles 27 + โ”œโ”€โ”€ hosts # Host-specific configuration 28 + โ”‚ โ”œโ”€โ”€ njord # MacOS development laptop 29 + โ”‚ โ”œโ”€โ”€ loki # Nixos gaming desktop 30 + โ”‚ โ””โ”€โ”€ hvedrung # FreeBSD (only for testing purpose of nixbsd) 31 + โ””โ”€โ”€ modules # macOS and nix-darwin, NixOS, and shared configuration 32 + โ”œโ”€โ”€ shared # Shared modules across all platforms 33 + โ”œโ”€โ”€ nixos # Nixos modules 34 + โ”œโ”€โ”€ darwin # MacOS modules 35 + โ””โ”€โ”€ bsd # FreeBSD modules 36 + ``` 37 + 38 + ## ๐Ÿ’ก - Acknowledgments 39 + 40 + These are the things that help me the most to understand Nix ecosystem and help me build my configuration from scratch. 41 + 42 + - [elythh](https://github.com/elythh/flake) 43 + - [Flakes book](https://nixos-and-flakes.thiscute.world/) 44 + - [Nix Language](https://nix.dev/) 45 + - [chenglab](https://github.com/eh8/chenglab/blob/main/modules/macos/base.nix)
+1 -1
hosts/njord/configuration.nix
··· 93 93 # List packages installed in system profile. To search by name, run: 94 94 # $ nix-env -qaP | grep wget 95 95 environment.systemPackages = with pkgs; [ 96 - # Dev environment most used 96 + # most used Dev environment 97 97 php83 98 98 php83Packages.composer 99 99 nodejs_20