diff --git a/nixos-rpi/configuration.nix b/nixos-rpi/configuration.nix index 9dd09ab..484e018 100644 --- a/nixos-rpi/configuration.nix +++ b/nixos-rpi/configuration.nix @@ -16,11 +16,7 @@ # Enables the generation of /boot/extlinux/extlinux.conf boot.loader.generic-extlinux-compatible.enable = true; - # swap - swapDevices = [{ - device = "/var/lib/swapfile"; - size = 16 * 1024; - }]; + boot.kernel.sysctl = { "net.ipv4.ip_forward" = 1; }; networking.hostName = "nixos-rpi"; # Define your hostname. # Pick only one of the below networking options. @@ -34,52 +30,24 @@ # networking.proxy.default = "http://user:password@proxy:port/"; # networking.proxy.noProxy = "127.0.0.1,localhost,internal.domain"; - # Select internationalisation properties. - # i18n.defaultLocale = "en_US.UTF-8"; - # console = { - # font = "Lat2-Terminus16"; - # keyMap = "us"; - # useXkbConfig = true; # use xkb.options in tty. - # }; - - # Enable the X11 windowing system. - # services.xserver.enable = true; - - - - - # Configure keymap in X11 - # services.xserver.xkb.layout = "us"; - # services.xserver.xkb.options = "eurosign:e,caps:escape"; - - # Enable CUPS to print documents. - # services.printing.enable = true; - - # Enable sound. - # sound.enable = true; - # hardware.pulseaudio.enable = true; - - # Enable touchpad support (enabled default in most desktopManager). - # services.xserver.libinput.enable = true; - # Define a user account. Don't forget to set a password with ‘passwd’. users.users.nixos = { isNormalUser = true; extraGroups = [ "wheel" ]; # Enable ‘sudo’ for the user. - packages = with pkgs; [ - docker - git - k3s - nodejs_21 - pulumi - tree - ]; + packages = with pkgs; [ ]; }; # List packages installed in system profile. To search, run: # $ nix search wget environment.systemPackages = with pkgs; [ - vim # Do not forget to add an editor to edit configuration.nix! The Nano editor is also installed by default. + docker + git + k3s + nodejs_21 + nodePackages.pnpm + pulumi + pulumiPackages.pulumi-language-nodejs + vim wget ]; diff --git a/nixos-rpi/hardware-configuration.nix b/nixos-rpi/hardware-configuration.nix index e2ead7c..395492c 100644 --- a/nixos-rpi/hardware-configuration.nix +++ b/nixos-rpi/hardware-configuration.nix @@ -20,7 +20,10 @@ fsType = "ext4"; }; - swapDevices = [ ]; + swapDevices = [{ + device = "/var/lib/swapfile"; + size = 16 * 1024; + }]; # Enables DHCP on each ethernet and wireless interface. In case of scripted networking # (the default) this is the recommended approach. When using systemd-networkd it's