diff --git a/base.nix b/base.nix index d319c29..5719ad8 100644 --- a/base.nix +++ b/base.nix @@ -16,6 +16,9 @@ # Use the newest kernel. boot.kernelPackages = pkgs.linuxPackages_latest; + # Set a limit on the number of generations to include in boot + boot.loader.systemd-boot.configurationLimit = 20; + # Enable networking networking.networkmanager.enable = true; diff --git a/bootstrap.sh b/bootstrap.sh index 884d94d..2e21df7 100755 --- a/bootstrap.sh +++ b/bootstrap.sh @@ -37,8 +37,8 @@ esac done echo "Setting up channels" -sudo nix-channel --add https://nixos.org/channels/nixos-unstable nixos -sudo nix-channel --add https://github.com/nix-community/home-manager/archive/master.tar.gz home-manager +sudo nix-channel --add https://nixos.org/channels/nixos-23.11 nixos +sudo nix-channel --add https://github.com/nix-community/home-manager/archive/release-23.11.tar.gz home-manager sudo nix-channel --update echo "Rebuilding the OS" diff --git a/modules/jetbrains.nix b/modules/jetbrains.nix index ccb64d1..81859f9 100644 --- a/modules/jetbrains.nix +++ b/modules/jetbrains.nix @@ -1,8 +1,13 @@ -{ pkgs, lib, ... }: +{ config, pkgs, lib, ... }: +let + unstable = import + (builtins.fetchTarball "https://github.com/nixos/nixpkgs/tarball/3a5eb38af0215cd697a78c25ececdab111f21388") + { config = config.nixpkgs.config; }; +in { environment.systemPackages = with pkgs.jetbrains; [ pycharm-professional - rust-rover + unstable.jetbrains.rust-rover ]; services.opensnitch.rules = {