Nix Flakes configuration for MacOS, NixOS and WSL
0
fork

Configure Feed

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

feat: add sunna machine

neoxa ef5780b4 e4b10323

+44 -1
+13
flake.nix
··· 61 61 ] ++ nixosModules; 62 62 }; 63 63 64 + # Asus Rog G15 WSl 65 + sunna = nixpkgs.lib.nixosSystem { 66 + system = "x86_64-linux"; 67 + specialArgs = { 68 + inherit inputs; 69 + hostname = "sunna"; 70 + }; 71 + modules = [ 72 + inputs.wsl.nixosModules.default 73 + ./machines/nixos/sunna 74 + ]; 75 + }; 76 + 64 77 # Rapsberry Pi 3b+ 65 78 hoenir = nixpkgs.lib.nixosSystem { 66 79 system = "aarch64-linux";
+31 -1
machines/nixos/sunna/default.nix
··· 1 1 { self, inputs, pkgs, hostname, ... }: 2 2 { 3 - # TODO 3 + # WSL configuration 4 + wsl.enable = true; 5 + wsl.docker-desktop.enable = true; 6 + 7 + # Networking 8 + networking.hostName = hostname; 9 + 10 + # Global packages 11 + environment.systemPackages = with pkgs; [ 12 + git 13 + lazygit 14 + ]; 15 + 16 + # Required to use it as vscode remote 17 + programs.nix-ld = { 18 + enable = true; 19 + }; 20 + 21 + # Enable flakes and other experimental features 22 + nix.settings.experimental-features = [ "nix-command" "flakes" "pipe-operators" ]; 23 + 24 + # Change buffer download size to 500Mo 25 + nix.settings.download-buffer-size = 524288000; 26 + 27 + # This value determines the NixOS release from which the default 28 + # settings for stateful data, like file locations and database versions 29 + # on your system were taken. It‘s perfectly fine and recommended to leave 30 + # this value at the release version of the first install of this system. 31 + # Before changing this value read the documentation for this option 32 + # (e.g. man configuration.nix or on https://nixos.org/nixos/options.html). 33 + system.stateVersion = "25.05"; # Did you read the comment? 4 34 }